ms_ITTR_fitting: ms_ITTR_fitting

Description Usage Arguments Value Examples

View source: R/ms_ITTR_fitting.R

Description

Function to perform time-response function fitting to generate fitting parameters for each entry/curve

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ms_ITTR_fitting(
  data,
  nread = 10,
  fc = 0.3,
  calMTT = FALSE,
  nbaseline = 3,
  baselineMAD = NULL,
  nMAD = 2.5,
  writetofile = TRUE,
  keepfittedvalue = FALSE
)

Arguments

data

dataset to be fitted

nread

number of reading channels or sample treatements, default value 10

fc

short for fold change, indicate the response level the fitting function used to back-calculate the corresponding effective concentration

calMTT

whether to calculate the Mininal Time Threshold(MTT), this is useful when do follow-up analysis such as R2-AUC plot

baselineMAD

MAD of baseline variation, default value is 0; if not provided, it will be calculated based on the readings from the lowest few dose points, specified by an integer 'nbaselineā€œ

nMAD

level of significance, default set at 2.5

writetofile

whether to keep a local file copy of the original data with fitting parameters, default set to TRUE

keepfittedvalue

whether to keep the fitted data at each time points with fitting parameters, default set to FALSE

Value

a dataframe

Examples

1
2
3
4
## Not run: 
ITTRdata_fitted <- ms_ITTR_fitting(ITTRdata_scaled)

## End(Not run)

nkdailingyun/mineCETSA documentation built on Feb. 27, 2021, 8:26 p.m.