qiNegBin: Simulate first differences for negative binomial models

Description Usage Arguments

View source: R/qiNegBin.R

Description

This function uses the computeNegBinEV function to simulate expected values, predicted values, and first differences for negative binomial models.

Usage

1
2
qiNegBin(data = NULL, x = NULL, x1 = NULL, coef = NULL, vcov = NULL,
  num = 10000, theta = NULL)

Arguments

data

imputed datasets in amelia object

x

a vector of values for predictors

x1

a second vector of values for predictors

coef

a matrix of coefficients

vcov

a list of variance covariance matrices

num

number of simulations. Default = 10000.

theta

a vector of theta parameters from each fitted negative binomial model results


stevenliaotw/sltools documentation built on May 20, 2019, 12:31 p.m.