Description Usage Arguments Value Examples

View source: R/likelihood_calc_function.R

Convenience function to calculate the log likelihood of a specified model.

1 | ```
calc.like.linear(beta, m, es_ab, es_bb, sd_y_x_model, sd_y_x_truth, model)
``` |

`beta` |
Vector of linear regression coefficients. |

`m` |
Minor allele frequency. |

`es_ab` |
effect size for mean AB - mean AA |

`es_bb` |
effect size for mean BB - mean AA |

`sd_y_x_model` |
The standard deviation of Y (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. |

`model` |
The genetic model in the linear regression: "Dominant", "Additive", "Recessive", "2df" or "null" |

The log likelihood.

1 2 | ```
calc.like.linear(beta = c(0.0000000, 0.1578947), m = 0.1, es_ab = 0, es_bb = 3,
sd_y_x_model = 0.9980797, sd_y_x_truth = 0.9544108, model = "Dominant")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.