expected.linear.ll: Function to Calculate Expected Log Likelihood for a Single...

Description Usage Arguments Value Examples

View source: R/likelihood_calc_function.R

Description

Calculates the expected log likelihood for a single genotype given the true and estimated mean and standard deviation for the outcome.

Usage

1
expected.linear.ll(mean_truth, mean_model, sd_y_x_truth, sd_y_x_model)

Arguments

mean_truth

Mean of the outcome given X(predictors/genotype) under the true model.

mean_model

Mean of the outcome given X(predictors/genotype) under the test model.

sd_y_x_truth

The standard deviation of Y given X (predictors/genotype) given genotype under the true model.

sd_y_x_model

The standard deviation of Y (the outcome) given X (predictors/genotype) under the test model.

Value

The log likelihood.

Examples

1
2
expected.linear.ll(mean_truth = 0, mean_model = 0.03,
 sd_y_x_model = 1, sd_y_x_truth = 0.9544108)

genpwr documentation built on March 31, 2021, 1:06 a.m.