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

How to simulate with inter-occasion variability? #4

Open
AndreasCalvagone opened this issue Feb 27, 2024 · 0 comments
Open

How to simulate with inter-occasion variability? #4

AndreasCalvagone opened this issue Feb 27, 2024 · 0 comments

Comments

@AndreasCalvagone
Copy link

AndreasCalvagone commented Feb 27, 2024

This is something that was always possible in campsis (https://calvagone.github.io/campsis.doc/articles/v07_iov.html) and in the custom dataset window in e-Campsis.

For the exmaple below you need a an omega parameter specifying the IOV (here we call it OMEGA_IOVCL) and of course, a place in your model where the random IOV is added to:
image

Than you just need to add one line to the dataset specifying the IOV distribution, with mean=0 and the variability taken from the parameter value.

dataset <- Dataset(subjects=10) %>%
	add(Bolus(time=0, amount=1000, compartment=1, ii=24, addl=4)) %>%
	add(Observations(seq(0,96,by=6))) %>%
        add(IOV(colname="IOVCL", EtaDistribution(model, "IOVCL"))) %>%
	add(DatasetConfig(exportTSLD=TRUE, exportTDOS=TRUE))
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