residuals.VFP | R Documentation |
Residuals Method for Objects of Class 'VFP'.
## S3 method for class 'VFP'
residuals(object, model.no = NULL, type = c("vc", "sd", "cv"), ...)
object |
(object) of class 'VFP' |
model.no |
(integer) model number to be use, if not specified the best fitting model will be used |
type |
(character) one of "vc" (variance), "sd" or "cv" on which scale residuals shall be determined |
... |
additional arguments |
Andre Schuetzenmeister andre.schuetzenmeister@roche.com
library(VCA)
data(CA19_9)
fits.CA19_9 <- anovaVCA(result~site/day, CA19_9, by="sample")
# extract repeatability
mat.CA19_9 <- get_mat(fits.CA19_9, "error")
res.CA19_9 <- fit_vfp(mat.CA19_9, 1:9)
# default is on variance scale
residuals(res.CA19_9)
# residuals on cv scale for model 6
resid(res.CA19_9, model.no=6, type="cv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.