As of May 31, 2023, we have updated our Code of Conduct.

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
1 answer
39 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
13 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 than the others (by multiple orders of ...
user370084's user avatar
0 votes
0 answers
13 views

Is it possible to have rate predictions which are greater than 1 with Poisson regression in r?

I was trying to fit the Poisson rate regression and predict the rate by using StanMoMo in R. However, when I tried to extract mufor(The predictions were saved in this variable) from the result. Few ...
doraemon's user avatar
  • 137
0 votes
0 answers
17 views

(Ab)Use of offset() in Poisson GLM to weight the damaging effect of counted insect stages

According to A.F. Zuur et al. (2009) in 'Mixed Effects Models and Extensions in Ecology with R', p. 239ff and this post: When to use an offset in a Poisson regression?, ...
jaypeg's user avatar
  • 46
0 votes
1 answer
28 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
0 answers
44 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
  • 61
2 votes
2 answers
93 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
  • 61
1 vote
1 answer
60 views

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

...
user avatar
1 vote
1 answer
30 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
0 votes
0 answers
46 views

How to correctly include an offset in a bernouli model in JAGS/WINBUGS (Only one success, but number of choices can change)

I am trying to fit a Bernoulli model in Jags. This is for mate choice - whether a male interacts with a given female out of a selection of females. For the purpose of the model they only get one ...
Graham Birch's user avatar
1 vote
0 answers
19 views

Offset variable in a Poisson regression measured with error

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
0 votes
2 answers
43 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
1 vote
0 answers
50 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
31 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
  • 11
1 vote
1 answer
40 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
40 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
  • 235
1 vote
1 answer
61 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
57 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
0 votes
0 answers
157 views

negative binomial glm: issues with model diagnostics when using offset term

I'm trying to model count data using a negative binomial glm with an offset in R and am having some issues with getting the model to fit properly when I use an offset term. Here is a reproducible ...
Conrad's user avatar
  • 1
2 votes
1 answer
226 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
238 views

How to incorporate offset variable in coxphf()?

...
SaJa's user avatar
  • 1
1 vote
1 answer
146 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
78 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
70 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,120
2 votes
1 answer
1k 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
202 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
202 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
  • 235
1 vote
1 answer
428 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
54 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
119 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
262 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
162 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 vote
0 answers
706 views

Poisson regression with offset - help with fit and visualization

My goal is to understand the relationship between the number of worms found in a plot of land and the percent silt that makes up the soil. The plots of land have been investigated to different extents ...
MilkDuds's user avatar
1 vote
0 answers
35 views

using per capita or raw counts for epidemiological regression analysis

I have two datasets. To simplify, they look something like this: ...
DiamondJoe12's user avatar
5 votes
2 answers
953 views

Does offset always have to be on log scale with NB GLMM?

I'm using a negative binomial GLMM with R package lme4 to detect differences in time mothers spend feeding before and after birth (inf_cat). ...
sam2210's user avatar
  • 47
1 vote
1 answer
1k views

Choosing the best family and link function for a GLM

I'm new to GLMs and I need to do several GLM using a kilometric abundance index (non integer, but calculated from a count) as the dependent variable and several habitat traits as the independent ones. ...
arnausc's user avatar
  • 11
1 vote
1 answer
70 views

Do offsets consume degrees of freedom?

In a model with some offset variables (variables with pre-determined regression coefficients), do these variables consume degrees of freedom, with regard of e.g. information criteria? Pro: You can ...
Dr_Informatics's user avatar
1 vote
0 answers
58 views

GLMM: How to impose a specific parameter (intercept or slope) for the model?

Good afternoon, I would like to know if it’s possible and how to specify parameters in a GLMM. Let’s take the example of a GLMM with random intercepts. In the following equation, the vector of fixed ...
Marianne's user avatar
1 vote
0 answers
76 views

Modelling catch rates: difference between Gamma and poisson distribution

I am confused about the difference between modelling counts (i.e. catch) using a poisson distribution with an offset (i.e. effort) and modelling catch per unit effort using a gamma(link=log) ...
Alessandra Bielli's user avatar
2 votes
1 answer
73 views

Can I partial out covariates with true coefficients known in Logit?

Suppose the model is $$ \ln(\frac{P_{ij}}{1-P_{ij}}) = X_{ij}\beta_0 + A_i + A_j + \epsilon_{ij}, $$ The unit of observation is at $ij$ level, and $A_i$ and $A_j$ are coefficients on the dummy for ...
user325721's user avatar
3 votes
1 answer
193 views

Understanding offsets for continuous variables

I'm currently trying to write a linear model with data from some behavioural experiments with termites. I started to read Ben Bolker's "Ecological Models and Data in R", which has been a ...
Leovar's user avatar
  • 101
0 votes
0 answers
158 views

Modelling overdispersed rate data using a negative-binomial distribution

A quick overview of the analysis I'm wanting to do: I am wanting to analyze the relationship between habitat factors and the capture of my research species over a network of traps, in order to be able ...
bluelagoon's user avatar
1 vote
0 answers
363 views

Can weights be used in place of offset in Tweedie model

I have seen evidence that Poisson regression can be run with either offsets or weights for time and both give the same results. However, I have noticed that the same is not true for Tweedie. I have ...
magooken's user avatar
0 votes
2 answers
209 views

mvabund package can't handle offsets?

I have a set of fish data from a lake. I am trying to see whether the local fish community differs depending on the location within the lake (North, East, West), the presence of an island at the ...
Dugan 's user avatar
  • 147
1 vote
1 answer
215 views

How to handle a constant parameter in a Poisson regression?

I have a Poisson regression model with rate, $\lambda$, defined as $ln (\lambda) = \alpha + \beta + \gamma$. Here $\alpha$ and $\beta$ change and $\gamma$ is 0.5 for each observation. $\gamma$ is ...
scott lucas's user avatar
3 votes
0 answers
59 views

Variance of negative binomial given an offset

Given observations $Y_1, \ldots, Y_n$ from the negative binomial distribution, $NB(\mu, \theta)$, and assume that we model the mean with a GAM: $$\log E(Y_i) = \log \mu_i = \log t_i + f(x_i),$$ where $...
J.C.Wahl's user avatar
  • 560
1 vote
0 answers
128 views

Interpretation of quasi poisson regression with offset

I am trying to find out how to correctly interpret the coefficients for a Poisson regression. My main outcome of interest is the number of antibiotics prescribed (count) or the rate of antibiotics ...
user272093's user avatar
1 vote
0 answers
363 views

Incorporate offset into mgcv GAM smoothing

When developing mortality models, I often have the following problem: I have a prior/base rate table and mortality experience data from a population of interest, and I need to develop factors on top ...
Paul's user avatar
  • 10.6k
3 votes
0 answers
170 views

How to adjust for exposure time in a binomial model

I have several binomial (logit) models that predict the probability of various binary outcomes (e.g., incurring any costs for health care treatment, having a chronic disease). My case and control ...
Kellan Baker's user avatar
1 vote
1 answer
129 views

Best GLM to model a random variable that represents a count over a non-fixed interval of time

The random variable on which I am seeking to fit a GLM is the number of times a patient has a blood glucose level measurement above a specified threshold before they are escalated onto a stronger ...
Jude Wells's user avatar

1
2 3 4 5