init.beta: Evaluate fixed effects initial values for lmmen

Description Usage Arguments Details Value See Also Examples

View source: R/initbeta.R

Description

Evaluate fixed effects initial values for lmmen via cv.glmnet or lme4.

Usage

1
init.beta(dat, method = c("glmnet", "lme4"))

Arguments

dat

data.frame, data to solve initial values

method

character, method to use, c('glmnet','lme4')

Details

cv.glmnet is set to ridge regression.

Value

numeric

See Also

cv.glmnet

Examples

1
2
3
 dat <- initialize_example(n.i = 5,n = 30,q=4,seed=1)
 init.beta(dat,method='glmnet')
 init.beta(dat,method='lme4')

lmmen documentation built on Aug. 15, 2017, 1:02 a.m.