Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with single antecedent and multiple outcome in bootstrap #310

Closed
NicholasDanks opened this issue Sep 8, 2022 · 0 comments
Closed

Comments

@NicholasDanks
Copy link
Collaborator

Dear Nicholas Danks hi. I am Dr. Lecturer Isa GÜL. I work at Afyonkarahisar University of Health Sciences, Department of Health Management in Turkey. I am trying to apply pls sem with SEMinR package in R program. However, when I write the codes below, I get the following error. Can you help with resolving the error? Kind regards

SEMinR code.............
install.packages("seminr")
library(seminr)
library(haven)
b1 <- read_sav("C:/Users/HP/Desktop/b1.sav")
View(b1)
........................................
mm <- constructs(
composite("P",multi_items("P", 1:5),weights = mode_A),
composite("B",multi_items("B",1:6),weights = mode_A),
composite("F", multi_items("F", 1:6),weights = mode_A),
composite("D", multi_items("D", 1:6),weights = mode_A)
)
...........................................
sm <- relationships(
paths(from = "P", to = c("B","F","D"))
)
..........................................
pls_model<-estimate_pls(data=b1,measurement_model=mm,
structural_model=sm,
inner_weights = path_weighting,
missing= mean_replacement,
missing_value = "-99")
..........................................................
summary(pls_model)
plot(pls_model)
..................................
boot_model_pls <- bootstrap_model(seminr_model = pls_model,
nboot = 50)
..........................................................................
Bootstrapping model using seminr...
Bootstrapping encountered this ERROR:
length of 'dimnames' [2] not equal to array extent

<Rplot.bmp>

NicholasDanks pushed a commit that referenced this issue Sep 8, 2022
NicholasDanks added a commit that referenced this issue Oct 12, 2022
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant