R/BIFIE_lavaan_survey_define_lavaan_function.R

Defines functions BIFIE_lavaan_survey_define_lavaan_function

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


BIFIE_lavaan_survey_define_lavaan_function <- function(lavaan_fun)
{
    requireNamespace("lavaan")
    if (lavaan_fun=="sem"){ lav_fun <- lavaan::sem }
    if (lavaan_fun=="cfa"){ lav_fun <- lavaan::cfa }
    if (lavaan_fun=="lavaan"){ lav_fun <- lavaan::lavaan }
    if (lavaan_fun=="growth"){ lav_fun <- lavaan::growth }
    return(lav_fun)
}

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.