-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error in mgmsampler function #28
Comments
I also came across this problem. My mgm version is "1.2-14", R version is "4.3.2 (2023-10-31)", and RStudio version is "2023.09.1+494" When I ran example 1 in the mgmsampler() function, I got the same warning message. However, sexamples 2 and 3 (focus on 3-way interaction) are fine. I wonder if there is any problem with 2-way interaction or else. Hoping for solutions. Thanks. |
I went through the code of the function, and I think this problem might occur because the code:
returns more than one logic element (as for example 1, the result is To solve this problem, I defined a new function Hope this solution can help. :) |
Hello, I was hoping to use this for some simulations I need to run. I just installed the latest developmental version and it looks like this error is still present (it was still present in the CRAN version as well). I tried the workaround posted by Jiahao-ZHU above but I can't quite get that to work. So I was just wondering whether anyone has found another workaround or whether an update to the developmental version could be made? Many thanks. |
I'll try to fix this asap. Meanwhile, an alternative and possibly more convenient way to simulate data with multivariate dependencies between variables with different domains is to simulate from a DAG. This avoids the issues arising from needing a proper joint distribution over all variables (see Appendix F in https://osf.io/preprints/psyarxiv/926pv and the accompanying code in corresponding reproducibility repo). |
Great, thanks Jonas, and for the tip and link as well. |
I know this has been a while, but any chance yo could send me a reproducible example of this? |
Hi Jonas,
Apologies for my slow reply.
The error message happens if you run Example 1 in the mgmsampler help material if that gives you what you need?
Kind regards,
Tom Rowland
PhD student in Animal Behaviour and Welfare
University of Lincoln
Animal Behaviour, Cognition, and Welfare Research Group
…________________________________
From: jmbh ***@***.***>
Sent: 13 December 2024 09:10
To: jmbh/mgm ***@***.***>
Cc: Thomas Rowland ***@***.***>; Comment ***@***.***>
Subject: Re: [jmbh/mgm] Error in mgmsampler function (Issue #28)
I know this has been a while, but any chance yo could send me a reproducible example of this?
—
Reply to this email directly, view it on GitHub<#28 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWNIVWQIL72EUUSGYFS52VL2FKP6ZAVCNFSM6AAAAABPSYMAYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBQHE2DAMZXGM>.
You are receiving this because you commented.Message ID: ***@***.***>
[University of Lincoln]<https://www.lincoln.ac.uk>
Situated in the heart of a historic city, the University of Lincoln is committed to transforming lives and communities through our teaching and research. We are listed in the world’s top 150 universities in the Times Higher Education’s (THE) Young University Rankings 2024 and hold a five-star score overall in the QS Stars rating system of global universities. We are one of a select group of universities to achieve the top Gold rating overall and in both aspect ratings for student experience and student outcomes in the national Teaching Excellence Framework (TEF) 2023. We were awarded the Queen's Anniversary Prize for Further and Higher Education in 2023.
The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.
Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.
The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at:https://www.lincoln.ac.uk/legal.
|
Hi Jonas,
I run the exampling code in the documantation of mgmsampler function, but got the warning message:
How to slove this problem?
The text was updated successfully, but these errors were encountered: