View source: R/curveclass2_base.R
fit_cc2_modl | R Documentation |
Curve Class2 uses 4-parameter Hill model to fit the data. The algorithm assumes the responses are in percentile. Curve Class2 classifies the curves based on fit quality and response magnitude.
fit_cc2_modl(Conc, Resp, classSD = 5, minYrange = 20, ...)
Conc |
A vector of log10 concentrations. |
Resp |
A vector of numeric responses. |
classSD |
A standard deviation (SD) derived from the responses in the vehicle control. it is used for classification of the curves. Default = 5%. |
minYrange |
A minimum response range (max activity - min activity) required to apply curve fitting. Curve fitting will not be attempted if the response range is less than the cutoff. Default = 20%. |
... |
for additional curve class2 parameters (currently none) |
2-asymptote curve, pvalue < 0.05, emax > 6\*classSD
2-asymptote curve, pvalue < 0.05, emax <= 6\*classSD & emax > 3\*classSD
2-asymptote curve, pvalue >= 0.05, emax > 6\*classSD
2-asymptote curve, pvalue >= 0.05, emax <= 6\*classSD & emax > 3\*classSD
1-asymptote curve, pvalue < 0.05, emax > 6\*classSD
1-asymptote curve, pvalue < 0.05, emax <= 6\*classSD & emax > 3\*classSD
1-asymptote curve, pvalue >= 0.05, emax > 6\*classSD
1-asymptote curve, pvalue >= 0.05, emax <= 6\*classSD & emax > 3\*classSD
single point activity, pvalue = NA, emax > 3\*classSD
inactive, pvalue >= 0.05, emax <= 3\*classSD
inconclusive, high bt, further investigation is needed
A list of output parameters from Curve Class2 model fit. If the data are fit or not fittable (fit = 0), the default value for tp, ga, gw, bt pvalue, masks, nmasks is NA. For cc2 = 4, it is still possible to have fit parameters.
modl: model type, i.e., cc2
fit: fittable, 1 (yes) or 0 (no)
aic: NA, it is not calculated for this model. The parameter is kept for compatability.
cc2: curve class2, default = 4
tp: model top, <0 means the fit for decreasing direction is preferred
ga: ac50 (log10 scale)
gw: Hill coefficient
bt: model bottom
pvalue: from F-test, for fit quality
r2: fitness
masks: a string to indicate at which positions of response are masked
nmasks: number of masked responses
PMID:35294762Rcurvep
fit_modls()
fit_cc2_modl(c(-9, -8, -7, -6, -5, -4), c(0, 2, 30, 40, 50, 60))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.