Learn R Programming

modsem (version 1.0.11)

parameter_estimates: Extract parameterEstimates from an estimated model

Description

Extract parameterEstimates from an estimated model

Usage

parameter_estimates(object, ...)

# S3 method for lavaan parameter_estimates(object, colon.pi = TRUE, ...)

# S3 method for modsem_da parameter_estimates(object, ...)

# S3 method for modsem_mplus parameter_estimates(object, ...)

# S3 method for modsem_pi parameter_estimates(object, colon.pi = FALSE, ...)

Arguments

object

An object of class modsem_pi, modsem_da, or modsem_mplus

...

Additional arguments passed to other functions

colon.pi

Should colons (:) be added to the interaction terms (E.g., `XZ` -> `X:Z`)?

Methods (by class)

  • parameter_estimates(lavaan): Get parameter estimates of a lavaan object

  • parameter_estimates(modsem_da): Get parameter estimates of a modsem_da object

  • parameter_estimates(modsem_mplus): Get parameter estimates of a modsem_mplus object

  • parameter_estimates(modsem_pi): Get parameter estimates of a modsem_pi object

Examples

Run this code
m1 <- '
  # Outer Model
  X =~ x1 + x2 + x3
  Z =~ z1 + z2 + z3
  Y =~ y1 + y2 + y3

  # Inner Model
  Y ~ X + Z + X:Z
'
# Double centering approach
est_dca <- modsem(m1, oneInt)

pars <- parameter_estimates(est_dca) # no correction

# Pretty summary
summarize_partable(pars)

# Only print the data.frame
pars

Run the code above in your browser using DataLab