fit: Fit a model to an object's data.

Description Usage Arguments Details Value Methods (by class) See Also Examples

Description

Fit a model and append it to the @model slot of the input object.

Usage

1
2
3
4
5
fit(object, ...)

## S4 method for signature 'DRE'
fit(object, type = "menls", name = NULL,
  loess.xlog = TRUE, control.weight = 10, silent = FALSE, ...)

Arguments

object

object of class DRE

...

other arguments passed to the model-fitting function, e.g. to loess or nls

type

type of model to fit, character. Currently supports "melm", "loess" and "menls": see Details

name

a name to assign to the model, character

loess.xlog

fit response vs. ln(dose) when using loess

control.weight

weight to assing to the control.response when using loess with loess.xlog = F, numeric

silent

logical: should the report of error messages be suppressed?

Details

The following model types can be specified by using the type argument:

Value

An object of the same class as the input with a model object appended to its @model slot

Methods (by class)

See Also

DRE, DRModel

Examples

1
2
3
4
data(sim15_screen3)
x = fit(dre(sim15_screen3,"Cpd10"),type="melm")
model(x)$melm
plot(x)

ybukhman/SynergyScreen documentation built on May 4, 2019, 2:31 p.m.