thetaExtract: Extract theta parameters from a merMod model

Description Usage Arguments Value See Also Examples

View source: R/subBoot.R

Description

A convenience function that returns the theta parameters for a merMod object.

Usage

1
thetaExtract(merMod)

Arguments

merMod

a valid merMod object

Value

a vector of the covariance, theta, parameters from a merMod

See Also

merMod

Examples

1
2
(fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy))
thetaExtract(fm1) #(a numeric vector of the covariance parameters)

Example output

Loading required package: arm
Loading required package: MASS
Loading required package: Matrix
Loading required package: lme4

arm (Version 1.10-1, built: 2018-4-12)

Working directory is /work/tmp

Loading required package: dplyr

Attaching package: 'dplyr'

The following object is masked from 'package:MASS':

    select

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Linear mixed model fit by REML ['lmerMod']
Formula: Reaction ~ Days + (Days | Subject)
   Data: sleepstudy
REML criterion at convergence: 1743.628
Random effects:
 Groups   Name        Std.Dev. Corr
 Subject  (Intercept) 24.740       
          Days         5.922   0.07
 Residual             25.592       
Number of obs: 180, groups:  Subject, 18
Fixed Effects:
(Intercept)         Days  
     251.41        10.47  
[1] 0.96673279 0.01516906 0.23090960

merTools documentation built on June 5, 2018, 9:04 a.m.