plot_esem_marginal: Plots parameters in an ESEM model

Description Usage Arguments Author(s) Examples

View source: R/plot_esem_marginal.R

Description

Plots parameters in an ESEM model

Usage

 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
)

Arguments

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

Author(s)

Subrata Paul

Examples

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)
}

CUBoulder-IBG/PlotMplus documentation built on Feb. 9, 2021, 9:16 p.m.