fitprobit: Fit a Probit Regression to Dose-Effect Data

Description Usage Arguments Details Value Examples

View source: R/fitprobit.R

Description

Fit a probit regression to dose-effect data, using the log10 of the dose as the response.

Usage

1
fitprobit(dat)

Arguments

dat

A data frame of toxicity data, including at least three variables: dose (the concentration of the tested chemical), ntot (the number of individuals tested), and nfx (the number of affected individuals).

Details

Only those rows with dose > 0, ntot > 0, and nfx >= 0 are used in fitting the model.

Value

A an object of class glm.

Examples

1
2
3
4
5
toxdat <- data.frame(
 dose=c(0.05, 0.0625, 0.125, 0.25, 0.5, 1),
  ntot=rep(8, 6),
  nfx = c(0, 1, 4, 4, 6, 8))
fitprobit(toxdat)

JVAdams/LW1949 documentation built on May 7, 2019, 10:14 a.m.