ZIPLL-package: ZIPLL

Description Details Author(s) References Examples

Description

This package fits the ZIPLL hierarchical dose-response model.

Details

Package: ZIPLL
Type: Package
Version: 1.0
Date: 2013-05-28
License: What license is it under?
LazyLoad: yes

This package fits the ZIPLL hierarchical dose-response model.

Author(s)

Ander Wilson

Maintainer: Ander Wilson <ander_wilson@ncsu.edu>

References

forthcoming

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#simulate data
dat <- simdata(nchem=10, nassay=4, seed=1234)

#fit ZIPLL
fit <- ZIPLL(dat)

#plot a curve
dose<-fit$dat[,3]
response<-fit$dat[,4]
post.mn<-fit$dat[,5]
post.sd<-fit$dat[,6]

these<-dat[,1]==6 & dat[,2]==2
plot(dose[these],response[these],xlab="Log dose",ylab="Response", log="x")
lines(dose[these],post.mn[these])
lines(dose[these],post.mn[these]-2*post.sd[these],lty=2)
lines(dose[these],post.mn[these]+2*post.sd[these],lty=2)

AnderWilson/ZIPLL documentation built on May 5, 2019, 4:56 a.m.