save.lmer.effects: Save lme4-output to disc

Description Usage Arguments Value Author(s) Examples

Description

The output of any lme4 analysis is saved in a memory saving manner.

Usage

1
save.lmer.effects ( lmerObj, lmerObjRestrict = NULL, fileName, scipen=6) 

Arguments

lmerObj

An lme4 object to be saved.

lmerObjRestrict

Optional: a second (restricted) lme4 analysis output. Needs to be nested to the first one. Intended if model copariison should be saved likewise.

fileName

Name of the file for the output (without file extension).

scipen

Maximum number of decimal places before exponential notation is used.

Value

No output is returned to console. Two files are created in the desired directory.

Author(s)

Sebastian Weirich

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
### Example from the help page of lmer().
fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
save.lmer.effects(fm1, fileName = "C:/fm1")

### with model comparison
### specify a "null model" nested in the first one: no fixed effects, only intercept
fm0 <- lmer(Reaction ~ (Days | Subject), sleepstudy)
save.lmer.effects(lmerObj = fm1, lmerObjRestrict = fm0, fileName = "C:/fm0_fm1")

## End(Not run)

eatGet documentation built on May 2, 2019, 5:26 p.m.