powered by
Calculates the expected log likelihood for a given set of linear regression coefficients under the null.
null.ll.linear(beta, m, es, sd_y_x_model, sd_y_x_truth)
Vector of linear regression coefficients.
Minor allele frequency.
Vector of effect sizes with two elements, (mean AB - mean AA) and (mean BB - mean AA).
The standard deviation of Y (the outcome) given X (predictors/genotype) under the test model.
The standard deviation of Y given X (predictors/genotype) given genotype under the true model.
The log likelihood.
# NOT RUN { null.ll.linear(beta = 0.03, m = 0.1, es = c(0,3), sd_y_x_model = 1, sd_y_x_truth = 0.9544108) # }
Run the code above in your browser using DataLab