boot.fiml: Bootstraps the full information maximum likelihood regression...

View source: R/missing_data_lm_functions.R

boot.fimlR Documentation

Bootstraps the full information maximum likelihood regression model under lavaan.

Description

Bootstraps the full information maximum likelihood regression model under lavaan.

Usage

boot.fiml(data, model, z.function = FALSE, R = 9999, conf = 0.95)

Arguments

data

The dataset for the analysis.

model

A regression model from lm()

z.function

A user supplied function to standardize variables and create nonlinear terms. Called internally.

R

The number of resamples to be conducted.

conf

The confidence level for intervals.

Value

Returns (1) maximum likelihood regression coefficient estimates (s) percentile and BCa confidence intervals using case-wise resampling

Examples

## Not run: 
x <- c(1,2,3,4,5,6)
y <- c(2.1,1.9,2.1,1.8,10,2.2)
temp_data <- as.data.frame(cbind(y, x))
lm_model <- lm(y~x, data=temp_data)
robust_lm_inferences(data=temp_data, model=lm_model)

## End(Not run)

jbiesanz/fabs documentation built on July 15, 2022, 11:02 p.m.