Simfit {dejaVu}R Documentation

S3 generic for fitting models

Description

S3 generic for fitting models

Usage

Simfit(x, family = "negbin", equal.dispersion = TRUE, covar = NULL, ...)

Arguments

x

The S3 object

family

Either "negbin" for fitting a negative binomial model (using MASS::glm.nb), "poisson" for fitting a poisson model (glm) or "quasipoisson" for fitting a quasipoisson model glm

equal.dispersion

logical, should the arms have the same dispersion parameter when fitting negative binomial models

covar

A formula containing the additional covariates to be used when calling glm.nb if no covariates are included in the model this should be NULL, for example ~covar1 + covar2 See vignette for further details

...

Additional arguments to be passed to glm or glm.nb

Value

A SingleSimFit object

See Also

SingleSimFit.object

Examples

 
set.seed(1234)
sim <- SimulateComplete(study.time=1,number.subjects=50,
      event.rates=c(0.1,0.05),dispersions=0.1)
summary(Simfit(sim,equal.dispersion=TRUE))



[Package dejaVu version 0.3.1 Index]