modelFormulaLR: Method "modelFormulaLR"

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/LogisticFramework.R

Description

Creates formula for the start Mixed Model based on equation and number of sexes in the data.

Usage

1
2
3
4
5
6
    
    modelFormulaLR(numberofsexes,
               depVariable,
               sexIncluded,
               dimorphismIncluded,
               IncludeBatch)

Arguments

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

sexIncluded

include sex effect into formula or not; mandatory argument

dimorphismIncluded

include interaction effect of Genotype/Sex into formula or not; mandatory argument

IncludeBatch

include batch effect into formula or not; mandatory argument

Value

Returns formula to use.

Author(s)

Natalja Kurbatova, Natasha Karp, Jeremy Mason

References

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.

See Also

PhenTestResult

Examples

1
2
    formula <- PhenStat:::modelFormulaLR(numberofsexes=2, 
            depVariable="Lean.Mass",TRUE,TRUE,"No")

PhenStat documentation built on Nov. 8, 2020, 8:13 p.m.