resp.surface.fit: resp.surface.fit

Description Usage Arguments Value Examples

View source: R/response_surface_fit.R

Description

Fits a generalized additive model (gam) or a polynomial surface (loess) to data.

Usage

1
2
3
resp.surface.fit(data, resp = "Birth_rate", conc1 = "CONC",
  conc2 = "CONC2", Drug1.name = "Drug 1", Drug2.name = "Drug 2",
  method = c("gam", "loess"))

Arguments

data

Concentration-effect dataframe.

resp

Name of the column with the response values. Default is Birth_rate.

conc1

Name of the column with the concentration values for drug 1.

conc2

Name of the column with the concentration values for drug 2.

Drug1.name

string to specify the name of drug 1.

Drug2.name

string to specify the name of drug 2.

method

array to specify if a generalized additive model (gam) or a polynomial surface (loess) model must be fitted to the data.

Value

This function returns a fitted gam object (see gamObject for a detailed description) or an object of class "loess".

Examples

1
2
3
4
5
6
## Not run: 
data(Dactolisib_Trametinib_rates)
gam.model=resp.surface.fit(GD,resp='Birth_rate',conc1='CONC',conc2='CONC2')
print(gam.model)

## End(Not run)

ItziarIA/ACESO documentation built on June 2, 2021, 5:09 p.m.