Description Usage Arguments Value Author(s) References See Also Examples
Creates formula for the start Mixed Model based on equation and number of sexes in the data.
1 2 |
modelFormula(equation, numberofsexes, depVariable)
|
equation |
a character string defining the equation to use (withWeight or withoutWeight); mandatory argument |
numberofsexes |
a numerical value for levels of sex in the dataset (1 or 2); mandatory argument |
depVariable |
a character string defining the dependent variable of interest; mandatory argument |
Returns formula to use.
Natalja Kurbatova, Natasha Karp, Jeremy Mason
Karp N, Melvin D, Sanger Mouse Genetics Project, Mott R (2012): Robust and Sensitive Analysis of Mouse Knockout Phenotypes. PLoS ONE 7(12): e52410. doi:10.1371/journal.pone.0052410
West B, Welch K, Galecki A (2007): Linear Mixed Models: A practical guide using statistical software New York: Chapman & Hall/CRC 353 p.
1 2 3 | formula <- PhenStat:::modelFormula(equation="withWeight",
numberofsexes=2,
depVariable="Lean.Mass")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.