Package 'poissonreg'

Title: Model Wrappers for Poisson Regression
Description: Bindings for Poisson regression models for use with the 'parsnip' package. Models include simple generalized linear models, Bayesian models, and zero-inflated Poisson models (Zeileis, Kleiber, and Jackman (2008) <doi:10.18637/jss.v027.i08>).
Authors: Max Kuhn [aut] , Hannah Frick [aut, cre] , Posit Software, PBC [cph, fnd]
Maintainer: Hannah Frick <[email protected]>
License: MIT + file LICENSE
Version: 1.0.1.9001
Built: 2024-12-13 06:30:00 UTC
Source: https://github.com/tidymodels/poissonreg

Help Index


Alcohol, Cigarette, and Marijuana Use for High School Seniors

Description

Alcohol, Cigarette, and Marijuana Use for High School Seniors

Details

Data are from Table 7.3 of Agresti (2007). The first three columns make up data from a 3-way contingency table.

Value

seniors

a tibble

Source

Agresti, A (2007). An Introduction to Categorical Data Analysis.

Examples

data(seniors)
str(seniors)

Turn zero-inflated model results into a tidy tibble

Description

Turn zero-inflated model results into a tidy tibble

Usage

## S3 method for class 'zeroinfl'
tidy(x, type = "count", ...)

## S3 method for class 'hurdle'
tidy(x, type = "count", ...)

Arguments

x

A hurdle or zeroinfl model object.

type

A character string for which model coefficients to return: "all", "count", or "zero".

...

Not currently used.

Value

A tibble