Learn R Programming

InteractionPoweR (version 0.2.2)

generate.interaction.cov.input: Creates the input to power_interaction_r2_covs()

Description

Companion function to 'power_interaction_r2_covs()'. Generates a formatted list for users to specify the analysis parameters.

Usage

generate.interaction.cov.input(c.num)

Value

A list to be used with the 'power_interaction_r2_covs()' function.

Arguments

c.num

Number of covariates in the model.

Examples

Run this code
ex1 = generate.interaction.cov.input(c.num=2)
ex1$correlations$r.y.x1x2 = c(0.1,0.2,0.3)

Run the code above in your browser using DataLab