Learn R Programming

qpcR (version 1.3-7.1)

meanlist: Amalgamation of single data models into an averaged model

Description

Starting from a 'modlist' containing qPCR models from single data, meanlist amalgamates the models according to the grouping structure as defined in group. The result is a 'modlist' with models obtained from averaging the replicates by pcrfit.

Usage

meanlist(object, group, type = c("mean", "median"))

Arguments

object
an object of class 'modlist'.
group
a vector defining the replicates for each group.
type
how to average the data.

Value

  • An object of class 'modlist' containing the averaged models of class 'nls'/'pcrfit'.

encoding

latin1

Details

As being defined by group, the average data of the curves is subjected to pcrfit and a new modlist with the averaged models is created. Similar to replist but does not contain the replicates within the 'nls' model but the averaged model with only ONE curve.

See Also

modlist, replist.

Examples

Run this code
ml1 <- modlist(reps, model = l4)
res1 <- meanlist(ml1, group = gl(7, 4))
plot(res1)
efficiency(res1[[1]])

Run the code above in your browser using DataLab