Usage

prep.loadings(map, params = NULL, idvar, exo.names = character(0),
intercept = FALSE)


Arguments

 map list giving how the latent variables map onto the observed variables params parameter numbers idvar names of the variables used to identify the factors exo.names names of the exogenous covariates intercept logical. Whether to include freely esimated intercepts

Details

The default pattern for 'idvar' is to fix the first factor loading for each factor to one. The variable names listed in 'idvar' have their factor loadings fixed to one. However, if the names of the latent variables are used for 'idvar', then all the factor loadings will be freely estimated and you should fix the factor variances in the noise part of the model (e.g. prep.noise).

This function does not have the full set of features possible in the dynr package. In particular, it does not have any regime-swtiching. Covariates can be included with the exo.names argument, but all covariate effects are freely estimated and the starting values are all zero. Likewise, intercepts can be included with the intercept logical argument, but all intercept terms are freely estimated with zero as the starting value. For complete functionality use prep.measurement.

Value

Object of class 'dynrMeasurement'

Examples

#Single factor model with one latent variable fixing first loading

# and freely estimated intercept
intercept=TRUE)

# and freely estimated covariate effects for u1 and u2
exo.names=paste0('u', 1:2))

# Two factor model with simple structure