50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


informR (version 1.0-5)

sfl2sl: Convert an sformlist object to a statslist object

Description

Converts an sformlist object to a statslist object, which is compatible with rem() in Butts's relevent package.

Usage

sfl2sl(sformlist,exclude=NULL,eventlist=NULL) sfl2statslist(sformlist,type=1)

Arguments

sformlist
an object of class(sformlist)
exclude
character vector, optional but useful if excluding events later. Must supply eventlist if non-null.
eventlist
optional, a two column matrix of events
type
integer indicating global or local statslist position. Defaults to 1.

Details

sfl2sl is an internal function used by gen.sformlist and should not normally be of any use to users.

sfl2statslist, however, will nicely convert any object returned by gen.sformlist or glb.sformlist into a statslist object. This is useful for constructing s-form models without intercepts passed from gen.intercepts.

See Also

gen.sformlist, slbind