exportRSA.bootstrap: Export bootstrapped parameters of polynomial model

View source: R/exportRSA.bootstrap.R

exportRSA.bootstrapR Documentation

Export bootstrapped parameters of polynomial model

Description

Utilitary function to export bootstrapped parameters, as part of STEP3 of the 3-step identification strategy (see RSAmodel). Utilitary function to export bootstrapped parameters

Usage

exportRSA.bootstrap(RSAbootstrap_object)

Arguments

RSAbootstrap_object

A matrix output generated by lavaan: bootstrapLavaan(RSA_object$models$name_final, FUN="coef")

Value

A table of mean values and 95

Examples

###### Export 95% CI of bootstrapped estimates of polynomial
#Estimate a model: FM26_PARALLELASYMWEAK (simulation data)
RSA_NSfit  <- RSAmodel(formula= engagement ~ needs*supplies,
data= sim_NSfit, model= c("FM26_PARALLELASYMWEAK"))
#Bootstrapped sampling with lavaan
RSA_NSfit_boot  <- lavaan::bootstrapLavaan(RSA_NSfit$models$FM26_PARALLELASYMWEAK,
 R= 10,FUN="coef")
#Export results in a table
RSA_NSfit_boot_exp <- exportRSA.bootstrap(RSA_NSfit_boot)
RSA_NSfit_boot_exp

RSAtools documentation built on June 22, 2024, 10:18 a.m.