fepois: Fit a Poisson model with multiple group fixed effects

View source: R/fepois.R

fepoisR Documentation

Fit a Poisson model with multiple group fixed effects

Description

Fit a Poisson model with multiple group fixed effects

Usage

fepois(
  formula,
  data,
  offset = NULL,
  subset = NULL,
  robust = TRUE,
  cluster = NULL,
  pseudo_rsq = FALSE,
  tol = 1e-10
)

Arguments

formula

an object of class '"formula"' (or one that can be coerced to that class): a symbolic description of the model to be fitted. Similarly to 'lm'. See Details.

data

a data frame containing the variables of the model.

offset

this can be used to specify an a priori known component to be included in the linear predictor during fitting. This should be NULL or a numeric vector or matrix of extents matching those of the response. One or more offset terms can be included in the formula instead or as well, and if more than one are specified their sum is used. See model.offset.

subset

an optional vector specifying a subset of observations to be used in the fitting process.

robust

logical value to return a robust standard error computation.

cluster

optional variable to group by and compute sandwich-type robust standard errors. Should be a formula of the form ~x_j or an object that be coerced to a formula.

pseudo_rsq

logical value to return a a pseudo-R2 based on Kendall's correlation.

tol

tolerance value for GLM convergence criteria.

See Also

felm


lfe documentation built on May 29, 2024, 7:39 a.m.