Description Usage Arguments Author(s) Examples
View source: R/plot_esem_marginal.R
Plots parameters in an ESEM model
1 2 3 4 5 6 7 8 9 10 | plot_esem_marginal(
model_output,
marginal,
marginal_show,
covariates = NA,
indep.var = NA,
load.thres = 0.2,
sort = F,
load.text.size = 5
)
|
model_output |
The output from MPLUS |
marginal |
Dataframe. Contains marginal association of the independent variable with the dependents. The dataframe contains columns with names "Condition", "Estimate", "SE", "Tstat", "Pvalue", "R2" , "Tstat_times_R2" |
marginal_show |
Either 'Estimate' or 'Tstat_times_R2'. The selected statistic will be showed. |
covariates |
A character vector of covariates. If the dependent variables were regressed on some variables they are the covariates. |
indep.var |
The variables that were regressed on the factors |
load.thres |
Threshold of loading to include in the plot. Default is 0.2 |
sort |
Logical. If true the loadings will be sorted using 'fa.sort' function |
Subrata Paul
1 2 3 4 | {
mplus_out = system.file("extdata", "sample_esem.out", package = "PlotMplus")
plot_esem(model_output = mplus_out, covariates = c('AGE','SEX','BMI'),indep.var = 'CREACT',sort = T)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.