Skip to main content

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
0 votes
0 answers
30 views

Poisson regression - using offset AND weights

I have seen several posts on using offset VS using weights, however I cannot locate anything about using both of those features. The problem is as follows: I model the number of occurred events (k). ...
HansKloss's user avatar
1 vote
1 answer
34 views

Help interpreting GLM interaction effect (Poisson with offset)

I've modelled a count variable using a Poisson glm and an offset variable. I'm looking at the effect of sampled year on the number of times people who are 'old' ( > age x) perform a behaviour ...
Elliot Howard-Spink's user avatar
0 votes
0 answers
27 views

How to choose a feature as an offset in GLM Binary Regression

Is there any statistical test to determine that Feature A should be an offset instead of Feature B and Feature C. From what I understand, if in insurance modelling, usually, offset has a connection ...
actsci stud tries2learn math's user avatar
2 votes
1 answer
65 views

Regression strategies for predicting a binomially distributed, count outcome: Poisson, Negative Binomial, and Logistic Models with Offsets

Data Description: I am working with a dataset of 100 hens, represented across four columns: ID: Numbers 1 through 100. Age: Each hen's age. EggCount: Number of eggs laid per hen, with a range from 0 ...
insan's user avatar
  • 145
1 vote
1 answer
41 views

How reasonable is it to divide an offset by an integer to make the model non-singular?

I have been trying to fit a GLMM (Poisson) into a dataset which has flock size as response variable, climatic data as fixed effects, and different Zoos in the USA as random effects. I am a novice in ...
Rahul's user avatar
  • 23
0 votes
1 answer
17 views

How can I justify using counts plus offset in a Poisson or NB model instead of "percent of total"?

I have count data that is part of a whole. It's not compositional, because the other parts of the whole aren't of interest. I could analyze it as a "percent", but I would rather do it as ...
Bryan's user avatar
  • 1,169
0 votes
1 answer
42 views

Twitter controversy - adjusting for population for counts of Tweets by country

There's some controversy in Ireland at the moment surrounding the number of international profiles sending tweets using a specific hashtag. I came across some people arguing about whether or not the ...
adkane's user avatar
  • 1,021
0 votes
0 answers
31 views

How to tell if an offset term is used from GLM model summary in Statsmodels?

I am currently working on Poisson regressions with offset terms via the GLM function in Statsmodels, but I think the same issue exists for the GLM function in R as the model summary is quite similar. ...
29703461's user avatar
0 votes
0 answers
27 views

Why does removing the offset change the F-statistic of an anova model in R?

When a linear model with only a single categorical variables is defined without an offset, the F-statistic reported by summary() and ...
meta7's user avatar
  • 1
0 votes
1 answer
58 views

Why is an offset needed in Poisson Regression? [duplicate]

Why does Poisson Regression require an offset variable when we model rates instead of a count? In a Poisson Distribution, lambda itself is a rate (e.g. cars per minute). It seems like the Poisson ...
Uk rain troll's user avatar
2 votes
0 answers
30 views

Is it possible to fit a linear model of y in log scale but with offset in the original scale?

Let's start with simple linear regression with log transformation of the response variable y: $$ \log(y_i) = \beta_0 + \beta_1x_i + e_i$$ (btw, how is this model called? log-linear regression or ...
Sofie's user avatar
  • 21
2 votes
0 answers
94 views

Why not always use covariate instead of offset in Poisson Regression? [duplicate]

I've just started studying Poisson regression and came across the two models: $$ \begin{align*} \log{\mathbb{E}(count)} &= \beta_0 + \beta_1x_1 + \beta_2x_2 + \log(T) \\\\ \log{\mathbb{E}(count)} &...
John Katsantas's user avatar
5 votes
2 answers
122 views

When are offsets useful in regressions involving literacy or linguistic data?

Motivation Question As the title suggests, I'm looking for examples of offsets in regression that make sense in my realm of research (early child development of reading and writing). To be clear, I am ...
Shawn Hemelstrand's user avatar
3 votes
1 answer
270 views

Negative binomial for catch data with GAM

I work with landing data (kg or tons), which don't follow a normal distribution and are more often than not over-dispersed. I'm trying to obtain a standardized index of abundance using GAM to model ...
Val's user avatar
  • 75
0 votes
0 answers
13 views

Regression of Purchase Count using Offset Term to Carry Information About Package Size/Count

Hello: I am interested in modelling the purchase rate over time (an integer number of purchases, observed daily, for a number of shoppers) for a collection of 3 different products. The data look a ...
G. Vece's user avatar
  • 548
0 votes
0 answers
25 views

Use of weights in a binomial model, with the response no longer a proportion

I am studying the factors that influence mosquito feeding behavior. In the experiments, N mosquitoes are exposed to a host for a duration t. At the end of this exposure, we count how many mosquitoes (...
alpagarou's user avatar
  • 151
2 votes
2 answers
71 views

How to interpret the average rate of NB-GLM when offset is involved?

My question is on how to interpret the coefficients of a negative-binomial GLM that included an offset. My dataset is a clinical trial where patients got one of two treatments (A or B) and stayed in ...
Jens's user avatar
  • 1,604
0 votes
1 answer
203 views

Prediction of Pure Premium with offset

I'm modeling a pure premium with glm and using an offset term equal to log(exposure). My question is, in R, what does ...
Abdou's user avatar
  • 1
2 votes
2 answers
776 views

Understanding emmeans outputs for poisson and negative binomial GLM fitted on count data with or without offset

I fitted a poisson and negative binomial GLM on count data (=larva) and try to explain it as a function of a factor (=modality). However, as the traps used to trap larvae from inflorescences were ...
Isa Gre's user avatar
  • 21
3 votes
0 answers
51 views

Should an offset be removed if the variable doesn't seem to have much influence?

This is about a joint project with a subject matter expert, and I'm the statistician. I will not explain the background and simplify the statistics problem as the background is rather complicated. The ...
Christian Hennig's user avatar
0 votes
1 answer
17 views

include length text as covariate or offset in negative binomial regression model

I have a dataset that contains the number of devices used to express casual relations in a text. I've constructed a Negative Binomial Regression to estimate the effect of Educational Level (3 levels) ...
Iban Manas's user avatar
0 votes
0 answers
33 views

Is it possible to use R-glm-offset as a multiplicative instead of within the exp-function value?

I have a dataset with a number of people at the start of the year and the status at the end of the year (either 0 for alive or 1 for deceased). In the dataset is the mortality probability from a life ...
user389996's user avatar
1 vote
1 answer
840 views

Parameter estimate interpretations in lm with offset

I want to analyze flight times of an insect (in function of several weather parameters), but these are done at different distances. One option could be to calculate the speed and analyze this, or what ...
HeleenVR's user avatar
1 vote
0 answers
42 views

Is it reasonable to apply different offsets to different species in community analysis?

I am using the manyglm function from the mvabund package. I have a site X species/family dataset of counts. One organism in the community is vastly more abundant ...
user370084's user avatar
0 votes
1 answer
60 views

Offset using Poisson distribution

I get everything but the two sentences are confusing me. Offset is a variable that serves to consider the different exposures of different observation. When properly included, the target variable is ...
shawn's user avatar
  • 11
0 votes
1 answer
271 views

How to impose restrictions on a regression using offsets?

An offset is a variable that is included in the regression but without coefficient (i.e. the coefficient is fixed at/assumed to be 1). I want to impose restrictions on my regression and I read that it ...
Xtiaan's user avatar
  • 171
2 votes
2 answers
302 views

Does a GLM where the dependent variable is a rate without offset produce the same result when a count with offset is used?

I have the following two models in Python: ...
Xtiaan's user avatar
  • 171
1 vote
1 answer
62 views

Regression Estimates equal 0, is there something wrong with the model?

...
user avatar
1 vote
1 answer
54 views

How to account for proportionality of predictors in a poisson regression

I am looking to conduct an analysis to test which variables (diagnosis, ethnicity, level of care) significantly predict the number of self-harm incidents a patient has over 2 years (observational data)...
wy_do's user avatar
  • 11
1 vote
0 answers
41 views

Offset variable in a Poisson regression measured with error [closed]

It is known that measurement error in predictors lead to a bias toward zero, and also bias other predictors’ estimates: The effect of covariate measurement error on coefficients in regression with ...
Federico Tedeschi's user avatar
1 vote
2 answers
351 views

How to interpret model estimates of a Glmer (poisson) with count data, offset term to get a rate, and random effect

I am trying to apply a glmer on syllable-count data obtained from bird song. I include the record ID as a random factor (1 | rec_ID) due to variation in the number of songs per recording, and consider ...
Gijs 's user avatar
  • 11
2 votes
0 answers
103 views

Poisson GLM Offset Exposure Question (from a noob)

Hi i am actually not an actuary but I'm currently working on an ML project on insurance pricing. The pricing is calculated by multiplying Claim Frequency and Severity, correct? I'm currently using ...
Fachri Ardiansyah's user avatar
1 vote
1 answer
46 views

how to add offset for Poisson-GPR using GPML package? [closed]

I'm using the popular GPML package in MATLAB for both Poisson and NB regression. Is there any way to add offset as easily as glmfit()? Specifically, assume there are N obesrvations, I want $\log(\mu)=\...
wgcdsb's user avatar
  • 163
1 vote
1 answer
110 views

How should I introduce an OFFSET term for a BINOMIAL response variable?

I have a binomial response variable -proportion of removed fruits, or plant visited or not visited by a frugivore- in a GLMM. I would like to control for differences in the sampling effort (time) ...
Raquel Muñoz's user avatar
1 vote
0 answers
73 views

How to interpret coefficents when you have an offset?

I'm measuring counts of birds as a function of the time (in months) across three parks (NP), as well as the presence of carcasses and season. I'm trying to find out whether the population is ...
adkane's user avatar
  • 1,021
2 votes
1 answer
73 views

How can we incorporate an offset into a software library which performs least squares without offset

Disclaimer: this is not homework, just preparation for an exam I'll be taking How do I incorporate an offset term into a software library that performs least squares (without offset)? Let me give a ...
Slim Shady's user avatar
1 vote
1 answer
110 views

Count vs. continuous predictors in Poisson regression with offset

I'm having a conceptual problem related to using different types of predictor variables (i.e., count data vs. continuous data) in Poisson regression. My field method was walking transects and counting ...
SageR's user avatar
  • 25
2 votes
1 answer
358 views

In Poisson models with an offset, should performance metrics (such as deviance) be calculated in terms of raw counts or counts per exposure?

For context, I need some metrics that can compare a standard Poisson regression (with population offset) to a random forest regressor with Poisson criterion. The test predictions for both methods are ...
jmc8's user avatar
  • 143
0 votes
1 answer
462 views

How to incorporate offset variable in coxphf()?

...
SaJa's user avatar
  • 1
1 vote
1 answer
303 views

Is "vanilla" random forest regression appropriate when dependent variable is a rate (i.e. per 100 people)?

To add a little more context, I am working with a dataset from which I want to predict the population-normalized count of emergency department visits on county level, with 50+ independent variables. ...
jmc8's user avatar
  • 143
0 votes
0 answers
121 views

Offset or weight in binomial GLM - account for distance to road on animal sightings

I am building a species distribution model for an animal, using data collected by community members when they sight this animal. My first step is to fit a generalised linear model with family binomial ...
Victoria's user avatar
2 votes
1 answer
132 views

Accounting for sampling effort of independent variables in a regression analysis

I would like the test whether the frequency of a cellular structure on a histology section is associated with (binary) patient outcomes. This would be a simple logistic regression of i.e. ...
Moose's user avatar
  • 1,140
3 votes
1 answer
2k views

Offset in Poisson GLM with log link function where I have values equal to zero

I am trying to build a GLM model (poisson family) using python statsmodels package on train data. The data I have contains categorical values as exogenous variables and numerical values for my target (...
Karima Touati's user avatar
2 votes
1 answer
479 views

Does a constant offset term meaningfully influence Poisson GLM?

If my offset term is a constant value, does this change the outcome of a Poisson GLM regression? I have survey count data that we summarize as a rate (Counts/Area-Surveyed). In this case, transect ...
Kodiakflds's user avatar
1 vote
1 answer
421 views

Incorporate Weights/Offsets with Nonparametric Models

I am modeling pure premium in R. I have read that pure premiums are usually modeled using a Tweedie distribution (glm). There is generally an offset or weight added to the model, such as an exposure. ...
mapleleaf's user avatar
  • 275
1 vote
1 answer
940 views

Can offset variables be used in binomial logistic regression models?

When I look up what exactly the offset is doing, I only see references to poisson or negative binomial models. Neither of those analyses work for me because I do not want to predict counts. I want to ...
Steve's user avatar
  • 21
1 vote
0 answers
58 views

Inclusion of values that can only be zero in Poisson glmer

I have carried out a biological experiment in which the dependent variable is female propensity to mating, measured as the number of times a female animal accepts a mating attempt from a male. I have ...
Ellen's user avatar
  • 41
5 votes
1 answer
206 views

Pair-matched count regression in R with offset?

I need to conduct a pair-matched count regression in R. Specifically, my data looks as follows: ID Exposure Occurrence Area 1 0 7 50 1 1 5 55 2 0 6 70 2 1 8 74 3 0 4 45 3 1 9 62 I need the ...
revere2323's user avatar
0 votes
1 answer
453 views

When to use offset in binomial glm

I am trying to model the number of successes in data where the number of trials is not fixed. I am trying to fit a binomial generalised mixed effects model, with the number of trials as an 'offset' ...
Ellen's user avatar
  • 41
0 votes
1 answer
312 views

How to include population size in difference-in-differences analysis

I'm trying to estimate the effect of a certain policy intervention on the count of violent incidents in communities which received that intervention, compared to communities which didn't. I'm trying ...
lex's user avatar
  • 47

1
2 3 4 5