validate.covariance.model | R Documentation |
Check that a matrix corresponds to a structure defining a covariance model for a non-linear mixed effect model. Such a matrix should be composed of only 0s and 1s, with at least one element set to 1, and should be square and symmetrical. 1s on the diagonal indicate that the corresponding parameter has interindividual variability and that its variance will be estimated. 1s as off-diagonal elements indicate that a covariance between the two corresponding parameters will be estimated.
validate.covariance.model(x, verbose = TRUE)
x |
a matrix |
verbose |
a boolean indicating whether warnings should be output if x is not a valid covariance model |
a boolean, TRUE if x is an acceptable structure and FALSE if not. Messages will be output to describe why x isn't a valid covariance model if the argument verbose is TRUE.
Emmanuelle Comets emmanuelle.comets@inserm.fr, Belhal Karimi
SaemixModel
covarmodel<-diag(c(1,1,0))
validate.covariance.model(covarmodel) # should return TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.