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

Error : 'id' cannot have NA values #187

Open
stefanie-hennig opened this issue Nov 14, 2024 · 5 comments
Open

Error : 'id' cannot have NA values #187

stefanie-hennig opened this issue Nov 14, 2024 · 5 comments

Comments

@stefanie-hennig
Copy link

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

@billdenney
Copy link
Contributor

Hi @stefanie-hennig ,

Is there a chance that you could share your .lst file and data?

@stefanie-hennig
Copy link
Author

stefanie-hennig commented Nov 14, 2024 via email

@mattfidler
Copy link
Member

Hi @stefanie-hennig

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.

@mattfidler
Copy link
Member

It still imports the model into rxode2, you could even simulate to see if the model performs correctly.

@stefanie-hennig
Copy link
Author

stefanie-hennig commented Nov 18, 2024 via email

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

3 participants