nls_extract: Extract pIC50s From nls

Description Usage Arguments Value Examples

View source: R/nls_extract.R

Description

Extract the pIC50 values from an nls fit.

Usage

1
nls_extract(fit, lower_trunc = 3, upper_trunc = 3)

Arguments

fit

output from nls_fit

lower_trunc

number of log10 units below the minimum concentration in the dose response curve to truncate the pIC50 to. Default is 3, ie pIC50 below -6 not allowed if minimum concentration is 0.001uM.

upper_trunc

number of log10 units above the maximum concentration in the dose response curve to truncate the pIC50 to. Default is 3, ie pIC50 above 4 not allowed if maximum concentration is 10uM.

Value

data frame of values

Examples

1
2
3
4
5
6
library(tidyverse)
data(drc_data_small)
cl_data_small <- dplyr::group_by(drc_data_small, cell_id) %>% tidyr::nest()
fit <- nls_fit(cl_data_small$data[[1]])
fit
nls_extract(fit)

chapmandu2/pgxsim documentation built on May 6, 2019, 10:13 a.m.