scip_dat: Generation of Small Count Inflated Poisson Data

Description Usage Arguments Details Value Author(s) Examples

View source: R/scip_dat.R

Description

This function generates small count inflated Poisson (SCIP) data, giving a list of values and group membership.

Usage

1
scip_dat(n, desmat, sam, kop, gam, c)

Arguments

n

The number of data points to be generated.

desmat

The design matrix to use for data generation.

sam

A vector of parameters to use for the small count distribution.

kop

A vector of parameters to use for the large count distribution.

gam

A vector of parameters to use for the binomial distribution (1 is small count group).

c

The cutoff of inflation

Details

This function takes a set of arguments and returns a vector of two elements. The first element is the generated count from the SCIP distribution, the second element is the group of membership (for dissertation purposes). The returning of the group membership element may be removed at a later date.

Value

This function currently returns a list of two vectors

y

A vector of the generated count variables

g

A vector of the group each generated count belongs to

Author(s)

Michael Floren

Examples

1
2
#show a histogram of small count inflated data
hist(scip_dat(n=3000, desmat=matrix(rep(1, 3000), ncol=1), sampi=log(.1), koppa=log(4), gamma=log(1), c=3)$y)

flor3652/BigD documentation built on Aug. 3, 2019, 7:27 p.m.