-
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
Error : 'id' cannot have NA values #187
Comments
Hi @stefanie-hennig , Is there a chance that you could share your .lst file and data? |
I thought you would ask that. Unfortunately not. But I will have a think about how to modify so that I can share and I still produce the error. There are NAs in the data, none in the id column, none in the NM output file. Cheers
Stefanie
|
You could also try importing it without the validation step. mod5 <- nonmem2rx(paste0(mod_dir, "/run015.mod"),lst=".lst", save=FALSE, validate=FALSE) While not ideal it can work around your problem until you can figure out a reproducible example. Once the reproducible example is produced we can then fix the issue so it works in this example. |
It still imports the model into rxode2, you could even simulate to see if the model performs correctly. |
Hi,
Validate=FALSE stops the looping and reads in without the error.
The plot(mod) doesnt work then.
But indeed I managed to do a simulation and then plot the sims output.
I will try and strip the data and model, so that I can potentially share. Not there yet.
/Stefanie
…________________________________
From: Matthew Fidler ***@***.***>
Sent: Saturday, November 16, 2024 8:56 AM
To: nlmixr2/nonmem2rx ***@***.***>
Cc: stefanie-hennig ***@***.***>; Mention ***@***.***>
Subject: Re: [nlmixr2/nonmem2rx] Error : 'id' cannot have NA values (Issue #187)
It still imports the model into rxode2, you could even simulate to see if the model performs correctly.
—
Reply to this email directly, view it on GitHub<#187 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6KJQLMMZWMFB26L3ELUCQL2AZ33JAVCNFSM6AAAAABRYE4RUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGA4TGMBZG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi Matt,
I seems to get an issue when trying to read in my model run in NM.
When using:
mod5 <- nonmem2rx(paste0(mod_dir, "/run015.mod"),lst=".lst", save=FALSE)
It gets to, but then gives the error
ℹ read in nonmem ETA data (for model validation): ......\runtab004
Error : 'id' cannot have NA values
It stops here:
Error : 'id' cannot have NA values
ℹ changing most variables to lower case
ℹ done
ℹ replace theta names
ℹ done
ℹ replace eta names
ℹ done
using C compiler: 'gcc.exe (GCC) 13.3.0'
but basically loops and crashes R every time I try and read in the model.
I do not have NA is in my ID column nor IPRED or PRED etc. It runs fine in NONMEM (ADVAN2 TRANS2). It's a simple 1 CMT model with oral dosing, 3 minor covariates.
Any suggestion, where I can start to search for the issue?
Thanks
Stefanie
The text was updated successfully, but these errors were encountered: