Learn R Programming

VFP (version 1.4.4)

residuals.VFP: Residuals Method for Objects of Class 'VFP'.

Description

Residuals Method for Objects of Class 'VFP'.

Usage

# S3 method for VFP
residuals(object, model.no = NULL, type = c("vc", "sd", "cv"), ...)

Arguments

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

Author

Andre Schuetzenmeister andre.schuetzenmeister@roche.com

Examples

Run this code
# \donttest{
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")
# }

Run the code above in your browser using DataLab