fit.curves: fit.curves

Description Usage Arguments Value

View source: R/fit.curves.R

Description

Fit dose-response curves using MLE

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
fit.curves(
  X,
  Y,
  Fname = "",
  Figname = "",
  FigDir = "",
  Ylab = "Y",
  Xlab = "X",
  axis.font = 0.75,
  log.base = NA,
  log.factor = 0,
  FigW = 7,
  FigH = 7,
  SigInit = c(0, 0),
  Uni6Init = c(0, -1, 2, 2, 2, 2),
  Uni5Init = NA,
  reltol = 1e-04
)

Arguments

X

concentrations

Y

response values

Fname

filename for saving figures

Figname

Title to appear on figures

FigDir

Directory where figures will be saved

Ylab

Ylabel for figures

Xlab

Xlabel for figures

axis.font

fontsize for figures

log.base

What base used to transform concentrations (NA = no transformation)

log.factor

value added to log-transformed data to avoid log(0)

FigW

Figure width

FigH

Figure height

SigInit

2-element vector with start values for sigmoidal function

Uni6Init

6-element vector with start values for 5-param unimodal

Uni5Init

5-element vector with start values for 6-param unimodal

reltol

numerical tolerance for mle2

Value

baseline mle2 object for null model

sigmoidal mle2 object for sigmoid DR curve

linear mle2 object for linear DR curve

unimodal5 mle2 object for 5-param unimodal DR curve

unimodal6 mle2 object for 6-param unimodal DR curve

quadratic mle2 object for quadratic DR curve

AIC.table Table with AICc results for each model

ANOVA Table with likelihood ratio test results for each model

FN File name used for plotting

B Identity of 'best' model as judged by likelihood ratio test

Pval Table of likelihood ratio test p-values


jwilsonwhite/DRcurves documentation built on March 14, 2021, 3:51 p.m.