Description Usage Arguments Value
View source: R/fit_induction_sigmoid_base.R
Fit log-transformed induction data
1 2 3 | fit_induction_sigmoid_base(df, start.list = c(a = 1.8, b = 0.03, c = 120),
x.cutoff = "none", pr.params = F, xmax = F, constrain.base = F,
return.params = FALSE)
|
df |
Dataframe or dataframe subset with columns "timepoint", "med.red", "shock.pH.f", and "treatment" (last two are grouping variables if a dataframe subset) |
start.list |
Edit the starting fitting parameters; default is c(a=1.8, b=0.03, c=120) (keep this form but change numbers) |
x.cutoff |
maximum timepoint to consider in fitting; default is "none" (fits on all timepoints) |
pr.params |
logical, whether or not to print the final parameters of the fitted model to screen |
xmax |
maxiumum x value to fit to |
constrain.base |
logical, whether or not to constrain the baseline of the fit to be 1 (0 on a log-transformed scale) |
return.params |
logical, whether or not to return the final parameters in addition to the data |
dataframe with columns "treatment", "shock.pH.f", "timepoint", and "med.red" for plotting
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.