Learn R Programming

SMIR (version 0.02)

trypanos: The trypanosome data

Description

Follman and Lambert (1989) gave an example of a logistic regression with a varying intercept term. The data consist of numbers $y$ of trypanosomes killed out of $n$ treated at a treatment dose $x$.

Usage

data(trypanos)

Arguments

Format

A data frame with 8 observations on the following 3 variables.
x
a numeric vector
n
a numeric vector
y
a numeric vector

Source

Follman, D.A. and Lambert, D. (1989). Generalizing logistic regression by nonparametric mixing. Journal of the American Statistical Association, 84, 295--300.

Examples

Run this code
 data(trypanos)
 library(npmlreg)
 (trypanos.np1 <-  alldist(cbind(y, (n - y)) ~ log(x),
      random =  ~1, data = trypanos, family = binomial,
      plot.opt = 0, verbose = FALSE,k=1))
 (trypanos.np2 <- update(trypanos.np1,k=2))

Run the code above in your browser using DataLab