Clarification on Entering IIV for Population Simulation in mrgsolve #1239
SravaniLanke
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Hi @SravaniLanke - The OMEGA block takes variances for on-diagonal elements. So if you are entering this information yourself (e.g. pulling values from a publication), then convert %CV to variance before inputting. The off-diagonal elements take covariances or you can optionally enter those as correlations (see the @correlation block option) library(mrgsolve)
#>
#> Attaching package: 'mrgsolve'
#> The following object is masked from 'package:stats':
#>
#> filter
mod <- house()
library(mrgsolve)
mod <- '
$OMEGA @corr
1
0.5 2
'
mod <- mcode("corr", mod)
#> Building corr ...
#> done.
omat(mod)
#> $...
#> [,1] [,2]
#> 1: 1.0000000 0.7071068
#> 2: 0.7071068 2.0000000
cov2cor(as.matrix(omat(mod)))
#> [,1] [,2]
#> [1,] 1.0 0.5
#> [2,] 0.5 1.0Created on 2024-09-24 with reprex v2.1.1 Kyle |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank You Kyle. Thank you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am setting up a population simulation using mrgsolve, and I have a question regarding how to handle inter-individual variability (IIV). Should I enter the IIV reported as CV% directly in the Omega section, or should I convert the CV% to variance (omega^2) before inputting it?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions