closedpCI.t instead.
The closedp.mX function fits a loglinear model given a design matrix mX. The closedp.h function fits Mh or Mth models for which the form of the column for heterogeneity in the design matrix is determined by the user.closedp.mX(X, dfreq=FALSE, mX, mname="Customized model")
closedp.h(X, dfreq=FALSE, m="Mh", h="Poisson", a=2)
## S3 method for class 'closedp.custom':
print(x, \dots)
## S3 method for class 'closedp.custom':
boxplot(x, \dots)Rcapture-package for a description of the accepted formats).X has one row per unit. If TRUE, it indicates that the matrix X contains frequencies in its last column.histpos.t function.closedp.mX or the closedp.h function, to print or to plot.closedp.h, the argument h cannot take the value "Chao" or "Darroch" because these models are already fitted by the closedp function.
The boxplot.closedp.custom function produces a boxplot of the pearson residuals of the customized model.closedp, closedp.Mtbdata(HIV)
mat<-histpos.t(4)
mX2<-cbind(mat,mat[,1]*mat[,2])
closedp.mX(HIV,dfreq=TRUE,mX=mX2)
data(mvole)
period3<-mvole[,11:15]
psi <- function(x) { -log(3.5 + x) + log(3.5) }
closedp.h(period3, h = psi)Run the code above in your browser using DataLab