You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## I need a help.
## I am working on a model as below:
measurements <- constructs(
composite("A", multi_items("A", 1:12)),
composite("B", multi_items("B", 1:5)),
composite("C", multi_items("C", 1:6)),
higher_composite("M", dimensions = c("A", "B", "C"), method = two_stage, weights = mode_B),
composite ("D", multi_items("D", 1:8)),
composite ("E", multi_items("E", 1:7)),
composite ("F", multi_items("F", 1:4)),
composite ("G", multi_items("G", 1:4)),
higher_composite("N", dimensions = c("D", "E", "F", "G"), method = two_stage),
composite ("H", multi_items("H", 1:3)),
composite ("I", multi_items("I", 1:3)),
composite ("J", multi_items("J", 1:5)),
composite ("K", multi_items("K", 1:4)),
composite ("L", multi_items("L", 1:3)),
higher_composite("O", dimensions = c("H", "I", "J", "K", "L"), method = two_stage))
structure <- relationships(paths (from = "M", to = "N"),
(paths (from = "M", to = "O")),
(paths (from = "N", to = "O")))
pls_model <- estimate_pls(data = data, measurement_model = measurements, structural_model = structure, missing = mean_replacement, missing_value = "-99")
summary <- summary(pls_model)
## The Model runs fine
#>Generating the seminr model
#>Generating the seminr model
#>All 178 observations are valid.
#>All 178 observations are valid.
## But when I try to plot the model,
plot(pls_model)
## Error in get_construct_type(model, construct) :
object 'construct_type' not found
## Anyway, I was able to plot the first stage model using,
plot(pls_model_1$first_stage_model)
## But, it doesn't show the inner model in the plot.
This problem arises because the authors used a single letter for the construct names, this aggravates a poor indexing line of code in extract_sm_nodes() in plot.dot.R row_index <- grepl(construct, model$mmMatrix[,1])
has now been replcaed with: row_index <- model$mmMatrix[,1] == construct
The text was updated successfully, but these errors were encountered:
#308)
* changes to indexing in get_sm_nodes() to fix a bug that arises from using a single letter construct name. Issue #305
* Attend issue #309 regarding bug in total_effects() function
* Addresses issue #289 - bug when calculating fSquared on HOC models
* Addreswses issue #310
* refactor to use smMatrix helper function
* Remove browser() from code
* final changes to bugfixes
Co-authored-by: Nicholas Danks <nicholasdanks@Nicholass-MacBook-Pro-2.local>
Co-authored-by: Nicholas Danks <you@example.com>
Co-authored-by: Soumya Ray <soumya.ray@gmail.com>
From Facebook, Mohamed Ali, and Jota P Hidalgo
Mohamed Ali:
and Jota P Hidalgo:
This problem arises because the authors used a single letter for the construct names, this aggravates a poor indexing line of code in extract_sm_nodes() in plot.dot.R
row_index <- grepl(construct, model$mmMatrix[,1])
has now been replcaed with:
row_index <- model$mmMatrix[,1] == construct
The text was updated successfully, but these errors were encountered: