View source: R/missing_data_lm_functions.R
boot.fiml | R Documentation |
Bootstraps the full information maximum likelihood regression model under lavaan.
boot.fiml(data, model, z.function = FALSE, R = 9999, conf = 0.95)
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. |
Returns (1) maximum likelihood regression coefficient estimates (s) percentile and BCa confidence intervals using case-wise resampling
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.