-
Notifications
You must be signed in to change notification settings - Fork 0
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
Multi groups issue #116
Comments
Thanks for reporting this. Regarding Regarding the error message, do the within-group models in your multiple group model has different variables, as in the following example? library(lavaan)
#> This is lavaan 0.6-17
#> lavaan is FREE software! Please report any bugs.
library(semfindr)
HS.model <-
"
group: Grant-White
visual =~ x1 + x2 + x3 + x7
textual =~ x4 + x5 + x6 + x8
group: Pasteur
visual =~ x1 + x2 + x3 + x7
textual =~ x4 + x5 + x6
"
fit <- cfa(HS.model,
data = HolzingerSwineford1939,
group = "school")
fit_rerun <- lavaan_rerun(fit)
#> Error in rbind(deparse.level, ...): numbers of columns of arguments do not match Created on 2024-05-15 with reprex v2.1.0 If this is the case, unfortunately, If your model is not like this one, may you run |
No worries ! Thank you for the wonderful package !
Unfortunately, like the example you have provided, my multiple group analysis uses different variables between the groups…
I eagerly await package updates for when this type of analysis can be used !
Best wishes and thanks again,
Toby
Sent from Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Shu Fai Cheung ***@***.***>
Sent: Wednesday, May 15, 2024 7:27 PM
To: sfcheung/semfindr ***@***.***>
Cc: cicadawing ***@***.***>; Author ***@***.***>
Subject: Re: [sfcheung/semfindr] Multi groups issue (Issue #116)
Thanks for reporting this.
Regarding approx_check(), we forgot to change the default value of the argument multiple_group. When called by fucntions like est_change_approx(), they correctly set multiple_group to TRUE. Therefore, despite the default value of approx_check(), other functions know that multiple group models are supported by the approximation method. Therefore, this default value will not affect other function. We will fix this issue in the nex version.
Regarding the error message, do the within-group models in your multiple group model has different variables, as in the following example?
library(lavaan)
#> This is lavaan 0.6-17
#> lavaan is FREE software! Please report any bugs.
library(semfindr)
HS.model <-
"
group: Grant-White
visual =~ x1 + x2 + x3 + x7
textual =~ x4 + x5 + x6 + x8
group: Pasteur
visual =~ x1 + x2 + x3 + x7
textual =~ x4 + x5 + x6
"
fit <- cfa(HS.model,
data = HolzingerSwineford1939,
group = "school")
fit_rerun <- lavaan_rerun(fit)
#> Error in rbind(deparse.level, ...): numbers of columns of arguments do not match
Created on 2024-05-15 with reprex v2.1.0<https://reprex.tidyverse.org>
If this is the case, unfortunately, semfindr does not (yet) support this kind of multigroup models.
If your model is not like this one, may you run traceback() right after the error message such that I can learn more where the error occured?
—
Reply to this email directly, view it on GitHub<#116 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXRE5NIQTOM32V6SY4N3DA3ZCMTBFAVCNFSM6AAAAABHXUHWAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSGAYTSOJTGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi there!
I am trying to run lavaan_rerun() on a fitted object with a lavaan object with 2 groups.
I thought that multi-group data was supported by semfindr per documentation, but I get the following error:
I am using:
semfindr_0.1.8
lavaan_0.6-17
The text was updated successfully, but these errors were encountered: