R/BIFIE_lavaan_survey_define_variables.R

Defines functions BIFIE_lavaan_survey_define_variables

## File Name: BIFIE_lavaan_survey_define_variables.R
## File Version: 0.04

BIFIE_lavaan_survey_define_variables <- function(lavmodel, svyrepdes)
{
    requireNamespace("lavaan")
    res <- lavaan::lavaanify(model=lavmodel)
    variables0 <- paste(svyrepdes$variables$variable)
    variables <- intersect( variables0, unique( c( res$lhs, res$rhs) ) )
    return(variables)
}

Try the BIFIEsurvey package in your browser

Any scripts or data that you put into this service are public.

BIFIEsurvey documentation built on May 29, 2024, 2:52 a.m.