Learn R Programming

qpcR (version 1.1-8)

pcrfit: Simple wrapper function for fast model fitting

Description

This is a wrapper function with easy syntax which simplifies the model fitting process by multdrc.

Usage

pcrfit(data, cyc = 1, fluo, fct = l5())

Arguments

data
the name of the dataframe containing the variables.
cyc
the column number with the cycle data. Defaults to 1.
fluo
the column containing the raw fluorescence data.
fct
the model to be used for the analysis, with the usual 'drc' package nomenclature. Defaults to 'l5'.

Value

  • A 'drc' model.

encoding

latin1

Details

This function is to be used at the single run level. Otherwise use pcrbatch.

References

Ritz C & Streibig JC. Bioassay analysis using R. J Stat Soft (2005), 12: 1-22.

See Also

The function multdrc for more detailed model specification.

Examples

Run this code
### simple l4() fit of F1.1 of the 'reps' dataset
m <- pcrfit(reps, 1, 2, l4())
pcrplot(m)

### same with five-parameter model
m2 <- pcrfit(reps, 1, 2)
pcrplot(m2, add = TRUE, col = 2)

Run the code above in your browser using DataLab