Skills Lab 11- Mediation Flashcards
The direct and indirect effect will never be bigger than the
Total effect
Within the model definition code what does ~ mean
Is predicted from
Within the model definition code what does = mean
Is created from
What is the code for defining the model
my_mod
What is the code to fit the model
my_fit
What function is used to fit the model
sem() from the lavaan package
What is listwise deletion
Where an entire participant is excluded from analysis if any single variable is missing
What is a better method to use than “listwise deletion” from the sem() function
- full information maximum likelihood (FIML)
- multiple imputation
What does FIML produce
Unbiased parameter estimates and standard errors where there is missing data
FIML can only be used when what is used
maximum likelihood estimators
Maximum estimators work by
Choosing the parameters that make the data most likely to have happened
What needs to be added to get maximum likelihood estimators
estimator = “ML”
What code adds maximum likelihood estimators with robust standard errors
estimator = “MLR”
What code can be used to look at how good the model is (the model fit statistics)
broom::glance()
What code can be used to look at the actual effects (the model parameters)
broom::tidy(my_fit, conf.int = TRUE)