Closed ShaCasis closed 3 years ago
1 Data_FTP and WB JASP.zip
Error in bars[[node]] <- pnorm(GroupThresh$est[GroupThresh$lhs = GroupVars$name[node]]): attempt to select more than one element in integerOneIndex
Stack trace tryCatchOne(expr, names, parentenv, handlers[[1]])
doTryCatch(return(expr), name, parentenv, handler)
withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)
analysis(jaspResults = jaspResults, dataset = dataset, options = options)
.medPathPlot(modelContainer, options, ready)
.suppressGrDevice(semPlot::semPaths(object = po, layout = rbind(deps_l, medi_l, pred_l, conf_l), intercepts = FALSE, reorder = FALSE, whatLabels = ifelse(options$plotpars, 'par', 'name'), edge.color = 'black', color = list(lat = '#EAEAEA', man = '#EAEAEA', int = '#FFFFFF'), border.width = 1.5, edge.label.cex = 0.9, lty = 2, title = FALSE, sizeMan = round(8 * exp(-n_totl/80) + 1), legend = options$plotlegend, legend.mode = 'names', legend.cex = 0.6, nodeNames = decodeColNames(po@Vars$name), nCharNodes = 3))
eval(plotFunc, parent.frame())
semPlot::semPaths(object = po, layout = rbind(deps_l, medi_l, pred_l, conf_l), intercepts = FALSE, reorder = FALSE, whatLabels = ifelse(options$plotpars, 'par', 'name'), edge.color = 'black', color = list(lat = '#EAEAEA', man = '#EAEAEA', int = '#FFFFFF'), border.width = 1.5, edge.label.cex = 0.9, lty = 2, title = FALSE, sizeMan = round(8 * exp(-n_totl/80) + 1), legend = options$plotlegend, legend.mode = 'names', legend.cex = 0.6, nodeNames = decodeColNames(po@Vars$name), nCharNodes = 3)
Go to SEM
Click on Mediation Analysis
Enter predictor (scale), mediator (ordinal), outcome (scale), and background confounder (2 scale variables)
Scroll down to Options and click: R-squared, total indirect effects, and residual covariances
Scroll down to Plots and click: parameter estimates and legend
Scroll down to Advanced and click under missing value handling: exclude cases listwise and click under emulation: none
See error
@Kucharssim do you have time to look into this?
1 Data_FTP and WB JASP.zip
Error in bars[[node]] <- pnorm(GroupThresh$est[GroupThresh$lhs = GroupVars$name[node]]): attempt to select more than one element in integerOneIndex
Stack trace tryCatchOne(expr, names, parentenv, handlers[[1]])
doTryCatch(return(expr), name, parentenv, handler)
withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)
analysis(jaspResults = jaspResults, dataset = dataset, options = options)
.medPathPlot(modelContainer, options, ready)
.suppressGrDevice(semPlot::semPaths(object = po, layout = rbind(deps_l, medi_l, pred_l, conf_l), intercepts = FALSE, reorder = FALSE, whatLabels = ifelse(options$plotpars, 'par', 'name'), edge.color = 'black', color = list(lat = '#EAEAEA', man = '#EAEAEA', int = '#FFFFFF'), border.width = 1.5, edge.label.cex = 0.9, lty = 2, title = FALSE, sizeMan = round(8 * exp(-n_totl/80) + 1), legend = options$plotlegend, legend.mode = 'names', legend.cex = 0.6, nodeNames = decodeColNames(po@Vars$name), nCharNodes = 3))
eval(plotFunc, parent.frame())
eval(plotFunc, parent.frame())
semPlot::semPaths(object = po, layout = rbind(deps_l, medi_l, pred_l, conf_l), intercepts = FALSE, reorder = FALSE, whatLabels = ifelse(options$plotpars, 'par', 'name'), edge.color = 'black', color = list(lat = '#EAEAEA', man = '#EAEAEA', int = '#FFFFFF'), border.width = 1.5, edge.label.cex = 0.9, lty = 2, title = FALSE, sizeMan = round(8 * exp(-n_totl/80) + 1), legend = options$plotlegend, legend.mode = 'names', legend.cex = 0.6, nodeNames = decodeColNames(po@Vars$name), nCharNodes = 3)
Steps to reproduce:
Go to SEM
Click on Mediation Analysis
Enter predictor (scale), mediator (ordinal), outcome (scale), and background confounder (2 scale variables)
Scroll down to Options and click: R-squared, total indirect effects, and residual covariances
Scroll down to Plots and click: parameter estimates and legend
Scroll down to Advanced and click under missing value handling: exclude cases listwise and click under emulation: none
See error