# 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.

129 questions
Filter by
Sorted by
Tagged with
13 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 ...
132 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 ...
23 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 ...
38 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 ...
48 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 ...
29 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: ...
24 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 ...
111 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 ...
127 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 ...
26 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 ...
48 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 ...
24 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 ...
48 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 ...
127 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. ...
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). ...
28 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 ...
38 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 ...
200 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....
39 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 ...
37 views

### POISSON REGRESSION AND OFFSET VARIABLE [duplicate]

I am using a Poisson regression model with a count data. More specifically, my dependent variable is the number of children dead. My feeling is that I could use a Poisson model with an offset ...
58 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 ...
78 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 ...
389 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). ...
88 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 ...
234 views

### Negative Binomial Regression: Offset Variable and Dispersion Parameter

My case is that previously it's assumed that the counts of events follows a negative binomial distribution, and the annualized exacerbation rate is 1 with a dispersion parameter of 1.5, and all 500 ...
126 views

### Mixed Effect Model - Roadkill hotspot v. coldspot

This problem concerns road mortality. We have 4 highway sections of varied length that were flagged as problem areas for road mortality with large mammals (moose, deer, elk, and even cows). We used ...
278 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 ...
109 views

### Poisson distribution: how to calculate the expected number of zeros in the presence of an exposure term

I have a dataset each with a line for different products, a count of sales and a number of days on sale. I estimated a Poisson regression to predict sales with an offset term of number of days on sale,...
78 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 ...
158 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 ...
622 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 ...
62 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 ...
108 views

### Regression Relationship Between Fraction and Whole Number

I am trying to determine the best regression model to use to determine if there is a relationship between clicks (independent variable) (represented as a whole ...
497 views

### Confidence interval for mean of Poisson distribution witih observations of different length

I am struggling with calculating a confidence interval for my data using a Poisson distribution. The context is manufacturing process quality control, and I think that a Poisson distribution is the ...
32 views

### How to account for different baselines when analysing extremes in time series data

I want to see if Wikipedia articles for topics featured in popular documentaries get a boost in page views on the day the documentary is aired. I then want to see if time on screen is a predictor of ...
688 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 ...
28 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 ...
464 views

### Gamma regression and offset term

I'm testing the effect of soil treatments on root and shoot length of seeds of a species. However the seeds had different sizes, which may affect root and shoot development. I have a measure of the ...
203 views

### gamma mixed model with offset and/or weights

I have some continuous positive data $Y_{ij}$ representing accumulated quantities, where $i$ denotes subject and $j$ a state. Patients are transitioning across states sequentially, but not all ...
165 views

### Applying offset correctly in an Interrupted Time Series Analysis using segmented regression in GLM in R [closed]

I would like to apply an offset to allow for the population within segmented regression using GLM on count data in R and need to ensure that the formula I am using is correct. Adding offset in 2 ...
2k views

### why is XGBoost giving me seriously biased predictions with small nrounds?

I can not put my company data online, but I can provide a reproducible example here. We're modelling Insurance's frequency using Poisson distribution with exposure as offset. Here in this example, ...
1k views

### Using glm() as substitute for simple chi square test

I am interested in changing the null hypotheses using glm() in R. For example: ...
47 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 ...
2k 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 ...
156 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, ...
364 views

### offset in logistic regression to take into account a priori individual probability estimates

I am performing a logistic regression (LR) model on a set of data on which an initial probability estimate for event occurrence, sai $\hat{p_i}^{base}$ has been provided. I have supplementary ...
4k views

### Can Weights and Offset lead to similar results in poisson regression?

In "A Practioner's guide to Generalized linear models" in paragraph 1.83 it is stated that: "In the particular case of a Poisson multiplicative GLM it can be shown that modelling claim counts with ...
52 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 ...