bio_dose_resp: Fitting of a Dose Response Model

View source: R/dose_response.R

bio_dose_respR Documentation

Fitting of a Dose Response Model

Description

Generic internal function for fitting of dose-response models with the output in a tidy format. Results include nested columns of raw data, fitted models, model parameters and curve data for plotting.

Usage

bio_dose_resp(
  data,
  .dose,
  .resp,
  .group = NULL,
  .model = drc::LL.4(names = c("slope", "min", "max", "ec50"))
)

Arguments

.dose

Column name for the dose data.

.resp

Column name for the response data.

.group
.model

Model function from {drc} to be fit to the data. Defaults to drc::LL.4() for the bio_dose_resp() function.

Value

A tibble() with list-columns containing the data, the predictions, the residuals and the coefficients of the model.

Examples

DNase %>%
  bio_dose_resp(conc, density, Run)

BradyAJohnston/biochemr documentation built on April 13, 2022, 9:15 p.m.