View source: R/estimate.R View source: R/archive/estimate - Copy.R
relvm | R Documentation |
Estimate multiple measure groups of the random effect latent variable model
relvm.
relvm(object, groups = NULL, fit = list(inits = NULL, use_wt = c("step2")),
file = NULL)
object |
A mstbl object. |
groups |
A vector of measure group names. The default is NULL, in which case a vector of all groups will be generated accordingly. |
fit |
A list of fitting parameters.
|
file |
File name in a rds format to cache the results on hard drive. |
An list of S3 object of class "relvms" with estimated parametes.
mstbl
# require(rstarating)
# To fit just one group: 'outcome_mort'
fit <- relvm(mstbl(cms_star_rating_input_2017dec),groups="outcome_mort")
# use weight in step 2 only (by default, weigt are used in step 1 and step 2)
fit <- relvm(mstbl(cms_star_rating_input_2017dec),groups="outcome_mort", fit=list(use_wt="step2"))
# Use weight in step 1 only (for test purpose only).
fit <- relvm(mstbl(cms_star_rating_input_2017dec),groups="outcome_mort", fit=list(use_wt="step1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.