# Questions tagged [offset]

A variable with a fixed coefficient of 1. Offsets are commonly used in Poisson regression to allow the modeling of rates instead of counts.

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0answers
1k views

### Analysis of survival data using binomial GLM with offset

We are interested in determining whether there's an association between frequency of screening visits and cancer outcomes and whether that differs by race. We have Medicare data to analyze this. ...
0answers
595 views

### How a tweedie glm handles an offset?

I am trying to fit a model with a glm using a tweedie family. I use a index parameter p between 1 and 2 to get a compound Poisson Gamma distribution to fit my data. But I want to use an offset only on ...
0answers
134 views

### How does Poisson regression (with an offset) relate to Logistic regression?

I have some data I am trying to analyze of how often someone has chosen a given option (which I'll call choice A) vs not choosing it (which I'll call choice B) during a 6 month period. Each subject ...
0answers
143 views

### How can I account for different sampling effort in my GLMM Poisson regression using glmer() - easily reproduced example inc

I've been grappling with my dataset for what seems like a very long time now. Hope someone can point me in the right direction. I would like to know how to account for the differing sampling effort ...
0answers
411 views

### Can a GLM with exponential response distribution be transformed into a Poisson regression instead?

Given the following generative model $$T | \mathbf{x_i} \sim \operatorname{Exp}(\lambda_i)$$ $$\ln(\lambda_i) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \dots$$ That is: I have observations of ...
0answers
39 views

### What does one do when the coefficient for the log of the rate estimator for a poisson rate model is very different from 1?

Let's say we have "number of accidents" as the response in a poisson regression model. One of the predictors is "number of days." Naturally, we expect more accidents to occur over more days, so it ...
0answers
118 views

### How to account for patterns in GAMM residuals due to the addition of an offset?

I have been wrestling with some model problems for a few weeks now and would like some help. I am trying to determine whether fish catch rates have changed following an event using GAMM. Because ...
1answer
432 views

### Offset option in Proc Logistic (SAS)

What difference does it make in estimation of model equation if a variable is specified in offset option in proc logistic? I know, if I specify a variable in offset option; the variable will be ...
1answer
54 views

### Count data with “double offsets”?

I am looking into race and homicides in the USA, 1995-2016. I want to look into "trans-race" (victim and perpetrator different races) homicides by race and year. However I want to also include effects ...
0answers
60 views

### Is an offset valid or is it endogenous in this count modeling scenario

Theory seems to indicate that an offset should be included in count models if groups are observed for different lengths of time or if they have different levels of exposure. Suppose we are observing ...
0answers
132 views

### Correlation between offset and predictor in count data

I am fitting a Poisson model that requires an offset term to account for sampling effort. However the offset term is highly correlated with one of the linear predictors that is central to my ...
0answers
534 views

### How to calculate robust standard error with offset?

I think the default vcovHC in R's sandwich package does not handle offsets in Poisson models. We see this because robust (heteroscedasticity consistent) standard ...
0answers
843 views

### How to estimate an mlogit (R package) model with a fixed (offset) variable

I am trying to estimate a multinomial logit model using an offset variable with the mlogit package of R Using the syntax here [https://stat.ethz.ch/R-manual/R-devel/library/stats/html/formula.html] ...
0answers
71 views

### How does offset in XGBoost is handled in binary:logistic objective function

I am working on a mortality prediction (binary outcome) problem with “base mortality probability” as my offset in the XGboost problem. I have used gbtree booster and binary:logistic objective function....
0answers
571 views

### GLM with averaged-count data - Poisson? Negative Binomial? Offset?

I am trying to construct GLMs to explore the relationship between woodpecker abundance and 9 predictor variables (tree density, canopy cover, and so on). My data were collected as counts of ...
0answers
42 views

### Using an offset term with panel data and unexposed controls

I'm evaluating the effect of a policy change on a count outcome across a number of units over time. I have panel data for 300 units over 20 time periods, with roughly 20% of units exposed to the ...
0answers
43 views

### Negative Binomial Regression model discrepancies

In a table, I've got total plant Counts (C), previous yr plant counts(PC), and multiple weather predictors(W; continuous data). The objective is examine the relationship between counts (C) and various ...
0answers
169 views

### Poisson model with multiple time offsets

I am trying to model health outcome rates by flu-season. I.e. hospitalization rates in good flu-years versus bad years. I am working with individual level nursing home resident data from ...
0answers
134 views

### Logarithmic offset + Scaling Counts + Multiplying by Scalar + Poisson Regression

I am working with a contingency table where I know that the population sizes from which the counts are derived are very different. From what I have been able to gather, an appropriate way to adjust ...
0answers
331 views

### Exposure variable negative binomial

I am using a negative binomial regression to analyse the amount of purchases per day for different products. When products are available for a different amount of time, (for example product A is ...
0answers
161 views

### Regression Model - forcing a coefficient/effect to be 1

Currently we have a linear model which includes 3 independent variables and the dependent variable "Y" which is the predicted values (range from -0.5 to 2000) from the model. Now we want to leverage ...
0answers
839 views

### Analysis of rates and post hoc test with offset variable using glmer.nb

I am investigating variation in pollinator visitation rate (number of visits per inflorescence) with treatment and time category as fixed factors. Block is a random factor. Following Zuur et al. (2009)...
0answers
100 views

### Confusion about the kind of offset-value for this non homogenous poisson-process

Suppose that I observe $M$-times this kind of table: ...
0answers
19 views

### Log-linear model for contingency table with no fixed count

I have table of counts of born children with four two-level factor variables (mother smoker/nonsmoker, child born dead/alive, ..). I would like to use log-linear model to understand interactions of ...
0answers
19 views

### Can I use Poisson regression to model prevalence ratios if I only have information on events?

I often used Poisson regression models to estimate prevalence ratios. However, in these cases my data contained information on the whole population, including events (1) and non events (0). ...
1answer
23 views

### Statistical specification for a Regression with continuous finite range count like data

I am interested in explaining what kind of personal characteristics and work environment variables are associated with sickness absenteeism. My dependent variable is the total number of days a given ...
0answers
19 views

### Interpretation of average marginal effect for proportion outcome in Poisson model with offset

To see the association of malaria prevalence with village level risk factors, I ran a Poisson model in r with the prevalence of malaria(y) as a dependent variable, altitude(x1) and Forestation(x2) as ...
0answers
27 views

### How to fit a gls model with a known slope

i want to fit a gls model (from nlme package) with a specified slope, so i can get the computed intercept for the best fit. I tried to set the slope with an offset. Althogh it works fine with lm, it ...
1answer
185 views

### Residual Deviance and degrees of freedom - Negative Binomial Distribution

I am trying to model count data using python's statsmodels module (Beer's sold at a football stadium as function of visitors, "tilskuer", and weather data). ...
0answers
25 views

### Offset in NB model produces contradictory results to original data

My (example) data frame is rather simple. I would like to know if there is a difference in numbers between the factors (n=2) within variable X. ...
0answers
23 views

### Include predictions as feature in regression. covariate or offset?

I have a regression setting in which I would like to explore the influence of a given variable on a certain patient condition, given a level of risk for the same outcome, predicted with a more complex ...
0answers
43 views

### How to insert temperature and precipitation data on a GEE or GLMM model

I am analysing a data of number of aphids with variation over time (32 avaliations performed every week), area (two areas), and plant position (fixed factor), with 3 replications. Because of that, I ...
1answer
133 views

### Statistical analysis of number of flood events

I am given the number of flooding events. There were 9 events in the years 2000-2010, and 6 between 1900-2000. How can one use Poisson to test if the frequency is increasing or not? What other type of ...