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

Using dose (AMT) in Model #654

Open
Murali-Ramanathan opened this issue Oct 3, 2024 · 4 comments
Open

Using dose (AMT) in Model #654

Murali-Ramanathan opened this issue Oct 3, 2024 · 4 comments

Comments

@Murali-Ramanathan
Copy link

Murali-Ramanathan commented Oct 3, 2024

Hi

I am relatively new to nlmixr.

I have a fairly standard depot compartment-central compartment model with a wrinkle

d/dt(depot) = -ka x DOSE x Function(t)
d/dt(centr) = ka x DOSE x Function(t) - k x centr

Is there a way to bring DOSE into model from the input data? I have a single bolus dose so there is no particular complexity.

Thanks
Murali

@mattfidler
Copy link
Contributor

You typically add evid=1 and amt=dose in the dataset to have a bolus dose in the first compartment.

The ode would be:

d/dt(depot) = -ka * depot
d/dt(centr) = ka * depot - k * centr

Other sorts of doses are also allowed; See:

https://nlmixr2.github.io/rxode2/articles/rxode2-event-types.html

@mattfidler
Copy link
Contributor

Also I develop nlmixr2 which is here:

https://nlmixr2.org

Since there hasn't been any activity on this repo for years, I am thinking of archiving it. If nlmixr comes back as another fork, they would want a separate repo probably anyway...

@Murali-Ramanathan
Copy link
Author

Thanks Matt. I use nlmixr2 and will use that repository! I have no problem with the data file. I want to drag a data file variable into my model file.

@mattfidler
Copy link
Contributor

Just refer to it by the name in the data file. It will be detected as a covariate

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

2 participants