Learn R Programming

genpwr (version 1.0.1)

linear.sds: Functions to Calculate Residual SD for Normal/Continuous Outcomes Function to calculate the standard deviation of y given x for linear models

Description

Functions to Calculate Residual SD for Normal/Continuous Outcomes Function to calculate the standard deviation of y given x for linear models

Usage

linear.sds(m, es_ab, es_bb, sd_y, model)

Arguments

m

minor allele frequency

es_ab

effect size for mean AB - mean AA

es_bb

effect size for mean BB - mean AA

sd_y

the standard deviation of y in the overall population.

model

The assumed genetic model(s) used in testing: 'Dominant', 'Additive', 'Recessive', '2df'

Value

A vector of linear regression model coefficients.

Examples

Run this code
# NOT RUN {
linear.sds(m = 0.1, es_ab = 0, es_bb = 3, sd_y = 1, model = "Dominant")

# }

Run the code above in your browser using DataLab