plsform: Create the structure of a linear mixed model from...

Description Usage Arguments Value Examples

View source: R/pls.R

Description

A pure R implementation of the penalized least squares (PLS) approach to evaluation of the deviance or the REML criterion for linear mixed-effects models.

Usage

1
2

Arguments

formula

a two-sided model formula with random-effects terms and, optionally, fixed-effects terms.

data

a data frame in which to evaluate the variables from form

REML

calculate REML deviance?

weights

prior weights

offset

offset

sparseX

should X, the model matrix for the fixed-effects coefficients be sparse?

...

additional arguments

Value

a list with:

Examples

1
2
3
4
form <- Reaction ~ Days + (Days|Subject)
data(sleepstudy, package="lme4")
ll <- plsform(form, sleepstudy, REML=FALSE)
names(ll)

lme4/lme4pureR documentation built on May 21, 2019, 7:34 a.m.