poisson_reg: Carry out a Poisson regression.

Description Usage Arguments Value Examples

View source: R/poisson.R

Description

Carry out a Poisson regression.

Usage

1
poisson_reg(df, orig, dest, cost, intr, type = "dbl")

Arguments

df

A tibble or a data frame.

orig

A column reference - the origin (a character or factor)

dest

A column reference - the destination (a character or factor)

cost

A column reference - the cost (a character or factor)

intr

A column reference - the interaction count (a character or factor)

type

What type of model to use (unconstr, orig, dest, dbl)

Value

A 'sim' object - like a model object but with a few extra attributes.

Examples

1
2
require(tidyverse)
eastmid_ttw %>% poisson_reg(From,To,Dist,Count)

chrisbrunsdon/simR documentation built on May 5, 2019, 2:41 a.m.