powered by
Returns the standard deviation of y given x for linear models with linear environment interaction
ll.ge.logistic.lin.envir( sd_e, N = NULL, MAF, power = NULL, beta0, OR_G, OR_E, OR_GE, Alpha, True.Model, Test.Model )
Standard deviation of the environmental variable
desired sample size
Vector of minor allele frequencies
desired power
the beta0 coefficient in the logistic model
Vector of genetic odds ratios to detect
Vector of environmental odds ratios to detect
Vector of genetic/environmental interaction odds ratios to detect
the desired type 1 error rate(s)
A vector specifying the true underlying genetic model(s): 'Dominant', 'Additive', 'Recessive' or 'All'
A vector specifying the assumed genetic model(s) used in testing: 'Dominant', 'Additive', 'Recessive' or 'All'
a function to be used as the integrand for the mle
# NOT RUN { ll.ge.logistic.lin.envir(sd_e = 1, MAF = 0.2, N = 30, beta0 = -1.462531, OR_G = 1.1, OR_E = 1.2, OR_GE = 1.5, Alpha = 0.05, True.Model = "Dominant", Test.Model = "Dominant") # }
Run the code above in your browser using DataLab