drmfit {qpcR}R Documentation

The drm fitting engine, replicated to the qpcR package

Description

The same function as drm, substitutes the former function multdrc and has been replicated to 'freeze' its working status for qpcR.

Usage

drmfit(formula, curveid, weights, data = NULL, fct, 
       na.action = na.omit, robust = "mean")

Arguments

formula a symbolic description of the model to be fit. Either of the form 'response ~ dose' or as a data frame with response values in first column and dose values in second column.
curveid a numeric vector or factor containing the grouping of the data.
weights a numeric vector containing weights.
data an optional data frame containing the variables in the model.
fct one of the available functions of the 'drc' package.
na.action a function which indicates what should happen when the data contain 'NA's.
robust a character string specifying the rho function for robust estimation. See drm.

Details

Please use pcrfit for easy fitting of single curves and drmfit in combination with repform if multiple replicates need to be plotted or analyzed.

Value

An object of class 'drc'.

Author(s)

Christian Ritz and Jens C. Streibig,
modifications by Andrej-Nikolai Spiess

Examples

### on single run data
m <- drmfit(F1.1 ~ Cycles, data = reps, fct = l5())
efficiency(m)
### on replicate data 
repData <- repform(reps[,1:5], c(0,1,1,1,1))
m <- drmfit(values ~ Cycles, curveid = Curve, data = repData, fct = l5())
### plotmean with errorbars
pcrplot(m, type = "errbar")   

[Package qpcR version 1.1-8 Index]