nls_lm_method: NLS + LM method

Description Usage Arguments Value Examples

View source: R/nls_lm_method.R

Description

Estimate pIC50 for each cell line using non-linear least squares then do linear regression. Two results are generated, one where the estimated pIC50 is truncated to the max/min of the dose response curve (nls_fit_t0), and one where it is truncated to 3 units above/below the max/min (nls_lm).

Usage

1

Arguments

df

nested data frame with cell_id, gene, pIC50 and dose response data

Value

data frame of results

Examples

1
2
3
4
5
6
7
data("sim_ex1_data")
dat <- sim_ex1_data$data[[1]]
dat
nls_lm_method(dat)

library(tidyverse)
purrr::map(sim_ex1_data$data, nls_lm_method) %>% dplyr::bind_rows()

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