Learn R Programming

genpwr (version 1.0.1)

linear.outcome.lin.envir.interaction.sds_reduced: Function to calculate the standard deviation of y given x for linear models with linear environment interaction

Description

Returns the standard deviation of y given x for linear models with linear environment interaction

Usage

linear.outcome.lin.envir.interaction.sds_reduced(MAF, sd_e, beta0, ES_G,
  ES_E, ES_GE, mod, True.Model, sd_y)

Arguments

MAF

Minor allele Frequency

sd_e

Standard deviation of linear environmental factor

beta0

baseline value for the outcome

ES_G

Genetic Effect size

ES_E

Environment Effect size

ES_GE

Environment x Genetic interaction Effect size

mod

Test model

True.Model

True model

sd_y

Standard deviation of y

Value

The standard deviation of y given x for linear models with linear environment interaction

Examples

Run this code
# NOT RUN {
linear.outcome.lin.envir.interaction.sds_reduced(MAF = 0.28, beta0 = -0.28, 
	sd_y = 5, sd_e = 1, ES_G = 0.5, ES_E = 1.6, 
	ES_GE = 1.4, mod = "Dominant", True.Model = "Additive")

# }

Run the code above in your browser using DataLab