Learn R Programming

VFP (version 1.4.3)

get_mat: Transform list of VCA-object into VFP-matrix required for fitting.

Description

Transform list of VCA-object into VFP-matrix required for fitting.

Usage

get_mat(obj, vc = 1)

Arguments

obj

(list) of VCA-objects

vc

(integer, character) either an integer specifying a variance component or the name of a variance component; can also be a vector of integers specifying a continuous sequence of variance components always including 'error' (repeatability)

Author

Andre Schuetzenmeister andre.schuetzenmeister@roche.com

Examples

Run this code
# \donttest{
library(VCA)
data(VCAdata1)
lst <- anovaVCA(y~(device+lot)/day/run, VCAdata1, by="sample")
get_mat(lst)  # automatically selects 'total'
# pooled version of intermediate precision (error+run+day)
get_mat(lst, 4:6)
# only repeatability ('error')
get_mat(lst, "error")
# use remlVCA instead
lst2 <- remlVCA(y~(device+lot)/day/run, VCAdata1, by="sample")
get_mat(lst2)
# }

Run the code above in your browser using DataLab