Learn R Programming

qpcR (version 1.3-7.1)

update.pcrfit: Updating and refitting a qPCR model

Description

Updates and re-fits a model of class 'pcrfit'.

Usage

## S3 method for class 'pcrfit':
update(object, ..., evaluate = TRUE)

Arguments

object
a fitted model of class 'pcrfit'.
...
arguments to alter in object.
evaluate
logical. If TRUE, model is re-fit; otherwise an unevaluated call is returned.

Value

  • An updated model of class 'pcrfit' and 'nls'.

See Also

The function pcrfit in this package.

Examples

Run this code
m1 <- pcrfit(reps, 1, 2, l4)

## update model
update(m1, model = l5)

## update qPCR run
update(m1, fluo = 20)

## update data
update(m1, data = guescini1) 

## update 'optim' method
update(m1, opt.method = "BFGS")

Run the code above in your browser using DataLab