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.

Filter by
Sorted by
Tagged with
3
votes
1answer
61 views

Why does adding an offset change the coefficients in a Poisson regression?

Suppose I run Poisson regressions but every time the only difference is the offset. Why are my estimated coefficients different? The offset is just like any other predictor in a linear model, the ...
0
votes
1answer
627 views

R mgcv gam: variable can be used as a predictor but not as an offset - Why?

I am trying to use the R mgcv package to fit a gam. I have one variable that I want to use as an offset. It works fine as a predictor, but when I use it as an offset gam fails with an error message ...
0
votes
0answers
12 views

R bayesglm prior vector - invalid length for prior.mean [closed]

When using R package arm bayesglm function, I cannot seem to use a prior vector of length equal to number of predictors. example below. I know the number of predictors is 4, but the function fails ...
0
votes
1answer
129 views

Do demographic variables need to be standardized when population size is included as a covariate?

I am doing a fixed effects regression where the dependent variable is number of people in an treatment facility in a given state/year. We are also including a population size control variable. I am ...
1
vote
0answers
40 views

Ecological count data and offset terms

Problem: When using GAMs to model ecological count data (e.g. fish counts) using Poisson or negative-binomial distributions, the response variable is raw counts and the offset (e.g. log-transformed ...
5
votes
1answer
9k views

lme4: glmer problems with offset()

this is my first post, so I hope everything is in the right format. I have some problems with glmer and don't know how to fix it, so I hope somebody can help me out with this. I could not find an ...
0
votes
1answer
29 views

Zero offset values, glmm poisson/negative binomial distribution with

I have a data set that consists of video observations of carpenter bee nests under three treatments: a control, mothers removed and mothers and worker removed. I have counts of twenty behaviours as ...
0
votes
1answer
37 views

Count Modelling and Rates and Zero Inflation

I am looking for some help modelling overdispersed (zero-inflated negative binomial) count data as a rate. I want to model the survivability of villages in different municipalities given guerilla ...
2
votes
1answer
34 views

Why use an offset variable as a predictor instead of just converting outcome to a rate?

I am reporting the results of an analysis where we tested the effect of various demographic predictors on the number of counselling sessions undertaken by participants during a clinical trial. I ran a ...
74
votes
1answer
63k views

When to use an offset in a Poisson regression?

Does anybody know why offset in a Poisson regression is used? What do you achieve by this?
0
votes
1answer
35 views

Comparison of paired count data between two treatment periods with different length of follow-up

I am currently using SAS 9.4 to carry out a retrospective analysis of patients who switched from drug A to drug B. I am interested in assessing the hospitalization counts before and after switch to ...
2
votes
1answer
418 views

Using Poisson for Crime Rates?

I've researched this problem a bit, but I want to make sure I'm not stepping on a landmine somewhere. I've read that one can use a Poisson regression for rate data if an offset or exposure term is ...
1
vote
0answers
51 views

What actually happens when we model a frequency instead of count (POISSON GLM)

First of all, I am using R. I know that we can model a frequency-response variable with a poisson regression, if we remember to weight it, so that the variance doesn't get affected by it. I am not ...
2
votes
1answer
744 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 ...
0
votes
1answer
32 views

How to account for adjustment of categorical parameters in R poisson regression

I recently read about poisson regression in R and also about the offset that can be set, as for example described here. If I understand correctly, this can be used to account for continuous ...
0
votes
0answers
23 views

Offsets variable subjects and behaviors

I have a set of behavioural data. It consists of about 600+ 50 mins long observations within 35 different bee nests, with many different numbers of observations per nest, and variable numbers of bees ...
0
votes
0answers
23 views

compare two GLM models on test set using deviance reduction with offset prediction

I'm trying to compare the goodness of fit of two GLM models of claims frequency, one "baseline" and one with some more variables we recovered from external sources. The approach I'm following should ...
4
votes
2answers
3k views

How to interpret glm and ols with offset

I ran a few glm and linear models with an offset. Each row in the dataset is a healthcare user. The data contains medical payments and icu days of each user between 2000 to 2007. As the number of ...
0
votes
1answer
29 views

Explanation of the model used in the following glm commands

In my textbook, the following two models were used. I understand the theory of glms, but I'm not too sure as to the specifics of the options and parameters you can play with in the R glm function. I ...
2
votes
1answer
70 views

May “offsets” be used in mixed-effects poisson regression?

Mixed-effects poisson regression studies counts for example of the incidence of a disease given the individual's random-intercept/slope. Mixed-effects regression studies individuals rather than ...
1
vote
1answer
20 views

May “offset” in poisson regression be a constant? [closed]

Let's say I'm trying to model the incidence of disease per 1000 people. I have data where people are id'd for example 1001,1002,1003,.... am I allowed to specify the offset as ...
0
votes
0answers
31 views

Beta regression or logistic regression with an offset term?

I have a dependent variable (DV) that is a proportion that is bounded by [0,1). Initially I was considering using a beta regression to model the relationship between this proportion and two other ...
2
votes
2answers
637 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). ...
1
vote
0answers
354 views

specifying random effect as offset in logistic glm (R)

I am working on a measurement error model for presence/absence data using a variant of a Monte Carlo EM (MCEM) algorithm for model fitting. As part of this approach, I simulate random effects by ...
2
votes
1answer
37 views

Does the inclusion of a model offset convert predictor variables from counts to rates?

Does the inclusion of a model offset in Poisson or logistic regression convert predictor variables from counts to rates? Or does it only convert response variables from counts to rates? I understand ...
1
vote
1answer
49 views

Account for the number of Bernoulli trials in the response and selected predictors of GLM?

I have sampled animals at a number of sites and time points. Each site is sampled up to 4 times a year and is sampled over multiple years. At each site*time ...
0
votes
1answer
60 views

Multiple linear regression LSE when one of parameter is known

Question is the following: For analyzing the observed data, the following regression model \begin{eqnarray} y_i=\beta_0+\beta_1x_{i1}+\beta_2x_{i2}+\beta_3x_{i3}+\epsilon_i \end{eqnarray} is ...
1
vote
1answer
30 views

Admissions per year before and after antibiotics?

I need to compare hospital admissions per year before and after the introduction of antibiotics in 100 patients (antibiotics introduced at various time points in the past). Eg. Before antibiotics: ...
1
vote
1answer
216 views

Use the offset or use rates as dependent variable in Poisson regression

I'm using a data set of an insurance company, and I want to model the number of claims (counts) as a dependent variable (number of insurance claims, nb_sinistre in this data set). In R I use a glm ...
1
vote
2answers
146 views

How do I fit models with predetermined covariates?

I'm trying to fit a multiple linear regression model. It has 10 variables, 2 of which are specified (e.g. $\beta_4 = 0.5$, $\beta_7 = 0.77$). How do I go about fitting this in R? I need to find the ...
0
votes
1answer
151 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 ...
2
votes
2answers
191 views

Can a variable be used both as an offset and an independent variable?

I am developing a negative binomial regression model that investigates factors impacting the death rate of animals that are fed. The number of deaths was counted over the course of a feeding season, ...
2
votes
1answer
61 views

Regression with related coefficients

I've worked out that some physical process has the form $y = ax_1 + (1-a)x_2$, and would like to perform regression to find $a$. I thought about multiple regression of $y$ on $x_1$ and $x_2$ and ...
5
votes
1answer
314 views

Estimating conditional effect of logistic regression

I'd like to examine the conditional effect of a new variable, say $\mathbf{Z}$, on a logistic regression previously fit to my response vector $\mathbf{Y}$ using the predictor(s) $\mathbf{X}$. Say ...
1
vote
0answers
29 views

Poisson regression with custom offset and link

I have the following model $$Y \sim \operatorname{Poisson}\left(\frac{1}{1+\exp(\beta X)} E\right)$$ In other words, I have count data for Poisson process with exposure E and rate given by the ...
0
votes
1answer
56 views

Is an offset term necessary for a count model of a behavior where subjects determine trial length?

We are modeling data from a behavioral study in which subject pairs' conversations are coded for specific types of utterances (say "Type A"). Subjects decide when their trial is over and we count Type ...
0
votes
0answers
35 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 ...
0
votes
1answer
103 views

Overdispersed poisson-distribution and offset --> standard errors?

I am modeling count data using R and doing a fixed-effects/random-effects model and thus limited on functions and therefore cannot use a quasipoisson model or negative binomial distribution, but ...
2
votes
1answer
350 views

Is the offset_column parameter in H20's random forest algorithm the same as the offset option in SAS Proc Logistic?

I am trying to use H2O in R to run a random forest. http://docs.h2o.ai/h2oclassic/Ruser/rtutorial.html In the documentation, I saw that there is an option for an offset parameter but I cannot find ...
0
votes
2answers
264 views

What type of data is needed for offset in a Poisson regression model - R

I am trying to do a Poisson regression using the following data, where infant deaths are shown per year for both North and South England. ...
1
vote
3answers
346 views

binomial glm with null-hypothesis = 0.33

I have a dataset and need to test if the values are statistical different to 0.33 (=1/3). Flies have the choice between 3 types of berries. So, if they do not care about the type they would lay 1/3 of ...
0
votes
1answer
34 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 ...
5
votes
1answer
107 views

Can I model incidence per 1000 people per month using poisson regression without an offset or using weights?

I am trying to model incidence rates (number of malaria cases per 1000 people per month) over time. I only have the data in the form of rates per 1000 people per month, i.e. I do not know the total ...
2
votes
0answers
328 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....
1
vote
1answer
368 views

POISSON regression with offset variable

Our problem is to determine if there is a relationship between the return on equity of firms (ROE) and the presence (number of indicators used) (Y) of a specific type of indicator showing up in the ...
0
votes
0answers
43 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 ...
3
votes
1answer
37 views

Poisson regression on devices that fail during observation period?

I am observing N devices over a period of time $[0,T]$ and counting the number of certain events $y_j$, for each device, during that period of time. I also have some specifications $x_j$ for each ...
1
vote
1answer
82 views

Should I include offset in null negative binomial model for comparing to full model?

I'm modeling how various landscape and ecological factors affect the I'd like to evaluate how well my negative binomial model performs over the null. I've specified an offset variable in my model to ...
0
votes
1answer
124 views

Offset term in negative binomial regression

I am fitting a simple negative binomial regression model with (Yearly cancer death ~ Offset (Size of population) + Age + Household income). I used the offset term because I want to compare the yearly ...
0
votes
1answer
96 views

Logistic regression with coefficients penalized to other numbers

When you penalize logistic regression using l1, l2 or both penalizations, the coefficients are penalized towards 0. I would like to do the same thing but penalizing the coefficients towards other ...