Description Details Author(s) References Examples
This package fits the ZIPLL hierarchical dose-response model.
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.
Ander Wilson
Maintainer: Ander Wilson <ander_wilson@ncsu.edu>
forthcoming
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.