fit_induction_sigmoid_base: Fit induction curve data with a sigmoid

Description Usage Arguments Value

View source: R/fit_induction_sigmoid_base.R

Description

Fit log-transformed induction data

Usage

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)

Arguments

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

Value

dataframe with columns "treatment", "shock.pH.f", "timepoint", and "med.red" for plotting


ctriandafillou/cat.extras documentation built on Aug. 27, 2020, 11:04 p.m.