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

View source: R/methods.R

residuals.VFPR Documentation

Residuals Method for Objects of Class 'VFP'.

Description

Residuals Method for Objects of Class 'VFP'.

Usage

## S3 method for class '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(s)

Andre Schuetzenmeister andre.schuetzenmeister@roche.com

Examples


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")


VFP documentation built on April 13, 2025, 5:12 p.m.