-
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: object "imputations" not found when using smcfcs Surv() #27
Comments
I'm sorry I cannot see what the problem could be with this. Is it possible you can share a sample dataset along with the code that reproduces the problem? Otherwise it is pretty tricky to diagnose. Alternatively, I would suggest reducing your dataset down to just one or or two of the covariates, and (hopefully) get it running. Then add back in covariates and see at which point it breaks - this may give a clue as to which variable is causing the problem and why. |
Thank you for your prompt response!! |
Sorry, I really can't think of what is causing it. Can you reproduce the error with a simulated dataset that has the same characteristics (or indeed reproduce it at all with a simulated dataset)? Otherwise, you could install the package source code using devtools package, then call the function after using devtools::load_all(). This would enable you to see where in the R source file the error is occurring. But without knowing too much about how the program is coded it could be tough to figure out the problem. Sorry. |
I see. I can surely try them out. It might take some time for me to provide a simulated dataset that has the same characteristics. So we might leave this issue open for now and I will get back to you! |
I had the same problem but I think I've found a fix – see #28. |
Tom's proposed fix has now been incorporated. Please try installing the development version:
and see if this resolves the issue. |
Hello!
Recently I ran smcfcs using "coxph" for the substantive model:
Immediately I ran into an error:
After trying everything (e.g., if the data frame and variables were in the right type, and checked methods and prediction matrix), it still did not work. I could not find similar posts to solve this issue either. Could you please help with the reasons for this error and possible solutions?
Many thanks!!
The text was updated successfully, but these errors were encountered: