Is it possible to use the probe2WayMC function of semTools when sem(ordered="dep"), or only when the DV is continuous? I've tried it but I'm receiving this error message: Error in est$beta[nameY, nameX] : subscript out of bounds
Using probe2WayMC when the dependent variable is binary in lavaan
112 views Asked by Ádám Stefkovics At
1
There are 1 answers
Related Questions in INTERACTION
- Can raw means and estimated marginal means be the same ? And when?
- R lsmeans adjust multinomial regression model with interaction term
- Difficulty Computing Simple Slopes with Reference Level "B" in Linear Regression Model
- julia Jupyter on() interaction error message
- Change lines types in interact_plot function
- Stata interaction term is zero or there is no number
- R forcing computation of interaction term estimates for reference level when it shouldn't
- Incomplete confidence intervals when using plot_model(type='pred') for an interaction
- Forward slash interaction term in R
- how can I write indirect and direct effects conditional on moderator, also index of moderated mediation?
- How to add reference level(s) for interaction in R
- Is there a way to customise panel titles in an effects plot?
- multilevel modeling with two time points - centering?
- Can I use partial dependency plot for lmer model?
- How can I add the nextcord.ui.UserSelect to the Class?
Related Questions in R-LAVAAN
- Using FIML and bootstrapping with BCa for very simple regression model
- Latent change score using lavaan with observed variables measured at two time points (and comparing results with traditional repeated measures anova)
- How to get fiml.regression wrapper function working for estimating an lm() model in lavaan
- How to ask lavaanPlot to show the error terms variances for both observed and latent factor
- how can I write indirect and direct effects conditional on moderator, also index of moderated mediation?
- Error when trying to knit related to lavaan
- How to include a nominal factor variable in Confirmatory Factor Analysis using lavaan package
- Moderation and Mediation model
- How to access p-values and fit estimates after pooling results from large lavaan.mi object?
- Lavaan Multigroup CFA not producing output with data on multiple groups
- How can I make graph readable using semPath
- Point Biserial Correlation across Multiple variables in R
- Using FIML with Sample.weights in Lavaan with fixed .X = F
- Issue in R package Lavaan SEM modeling
- How do I classify binary indicator variables in SEM using WLSMV in R (lavaan)
Related Questions in SEMPLOT
- How can I make graph readable using semPath
- Issue in R package Lavaan SEM modeling
- Path diagram plot: latent growth curve model customisation
- How to solve problems when installing semPlot
- confirmatory factor analysis (CFA) is returning "solution has NOT been found!"
- Error in lavaan::lavaan ERROR: missing observed variables in dataset: TR EW SRI VPM DELY
- Where is the std.all & std.lv information stored in the lavaan object?
- Using probe2WayMC when the dependent variable is binary in lavaan
- R package: namespace ‘rlang’ 1.0.6 is already loaded, but >= 1.1.0 is required
- R package not found in docker build
- Plotting a SEM Actor-Partner Interdependence Model after runMI()
- Avoid overlapping factor loadings when using semplot function in R
- Errors when trying to install 'semPlot' R package
- Remove residual variance paths of y-indicators in sempaths (package: semplot)
- R: is it possible to draw a diagram with SemPlot without fitting a model?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Original Answer
The product-indicator method literally calculates products of (numerical values of) indicators. You can only do this with ordinal data by treating the (arbitrarily numbered) category labels as though they were really numbers. Here is a simulation study comparing that approach to LMS estimation while treating indicators as ordinal:
https://doi.org/10.1177/0013164419865017
Treating them as numeric may be the most expedient approach if there are several categories (so approximately continuous). Otherwise, you could use the parameter-moderation approach:
https://doi.org/10.1037/met0000501
Post-comment addition:
If only the outcome is an observed ordinal variable (e.g., binary like the OP's, or more categories like the reprex below), the
probe2WayMC()function still works:If (as in the OP's case, described in a comment below this answer) the moderator is also binary, then product indicators are not necessary because a multigroup SEM allows for moderation by the
group=variable:Note that the slopes are only (validly) comparable given invariance constraints on thresholds and loadings, so that the scales are linked across groups for the latent factor
f1and the latent response underlyingDV. The MG-SEM approach is also less restrictive because it allows (residual) variances to differ across groups, whereas a single-group approach (using product indicators) would assume homoskedasticity.https://doi.org/10.1080/10705511.2020.1766357
https://doi.org/10.1007/978-3-319-77249-3_20 (tutorial with
lavaanexamples)