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

R encountered fatal error - unsure cause #50

Open
paynewinston opened this issue Nov 27, 2023 · 0 comments
Open

R encountered fatal error - unsure cause #50

paynewinston opened this issue Nov 27, 2023 · 0 comments

Comments

@paynewinston
Copy link

Hello, I'm trying to figure out why I am suddenly receiving a fatal error while running amelia. I'm fairly new to this package, but when I used it originally (2 weeks ago), it was running. Now, I can't run a MI without R crashing. Any suggestions? I've already deleted and re-installed all of R on my laptop.

Here is the code that I am running:

library(lavaan)
library(readxl)
library(haven)
library(semTools)
set.seed(5)

library(naniar)
library(finalfit)
library(Amelia)

#load in new data set, adolescents only

trauma<- read_excel("C:/Users/PayneWinston/OneDrive - Newport Academy/Research Papers & Projects/Trauma Paper/adol_short.rev.xlsx")
View(trauma)

#multiple imputation

mi<-amelia(trauma, m=5, idvars = c("age","bothpar", "coerc","lsu",
"ECR_01M", "ECR_02M","ECR_03M","ECR_04M", "ECR_01F", "ECR_02F","ECR_03F","ECR_04F"),
ords =c("ECR_01Mr", "ECR_02Mr","ECR_03Mr","ECR_04Mr","ECR_05M","ECR_06M","ECR_07M","ECR_08M","ECR_09M",
"ECR_01Fr", "ECR_02Fr","ECR_03Fr","ECR_04Fr","ECR_05F","ECR_06F","ECR_07F","ECR_08F","ECR_09F"))

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