# Questions tagged [intercept]

The intercept in regression-type models is the value of the Y variable when all X variables are 0.

270 questions
Filter by
Sorted by
Tagged with
27 views

### Independent variable is correlated with intercept, creating singularities

I am building a logistic model with about 20 variables. I have used the following code: `fullmod = glm(cancer ~ B_SEX+BLINE_AGE_AT_BASELINE+B_BMI+B_chro+B_fdrc+B_hrt+B_LMET+ B_MET+B_FV+B_EDU+B_INC+...
54k views

### Intercept term in logistic regression

Suppose we have the following logistic regression model: $$\text{logit}(p) = \beta_0+\beta_{1}x_{1} + \beta_{2}x_{2}$$ Is $\beta_0$ the odds of the event when $x_1 = 0$ and $x_2=0$? In other words, ...
28 views

### Why does using the pnorm function on the intercept estimate of a binomial regression recover the mean of the dependent variable?

I've fit a series of mixed effect models with the lme4 package in R on a set of binomial outcome variables (1: the event happened, 2: it did not). The fixed effect ...
30 views

### Interpreting estimates in a Poisson regression

I know similar questions have already been answered but in this particular case I need some additional help. I am working with this data set: https://github.com/proback/BeyondMLR/blob/master/data/...
2k views

### Two intercept coefficients in glmnet output

I am not sure I understand why glmnet returns 2 intercepts in its result. If model matrix already has intercept column, why do we need another intercept for the model? ...
44 views

### When forcing intercept to zero, how R-squared is changed? [duplicate]

I have some questions. In a linear model, I want to force intercept to zero. The program (I used JMP) does not provide R-squared when intercept becomes zero. So, I calculated R-squared by myself by ...
23 views

### Understanding the intercept in an unadjusted logistic regression

I have performed an unadjusted logistic regression using weights (obtained via genetic matching) as below. I am using the survey package to make working with the ...
10 views

### Intercept in a dynamic panel model

I have been taught that including fixed/random effects in a dynamic panel model yields inconsistent estimates when using OLS and hence motivates the usage of other estimation methods. However, does ...
388 views

### Calculating variance components and ICC of a random intercept model by hand

When I really want to understand a measure or parameter, I tend to do the calculation by hand with simplified data. Today I have attempted to do the same with the ICC, but somehow keep failing. I was ...
44 views

### Is the intercept fit differently for each regressor in Multiple Linear Regression?

is the intercept B0 in y = B0 + B1X1 + .... fit differently for every feature x1. Is it different for every feature coefficient or the same for all feature coefficients and why so?
50 views

29 views

### Logistic Regression with unbalanced data, intercept effect

In several papers I have read that when doing a logistic regression with unbalanced data, the entire effect of the imbalance is carried by the intercept. However, I cannot understand why this occurs, ...
25 views

### Should I give up the intercept when calculating general trend of time series?

I have a time series of customers. Say, every customer has 30 observations of how may items he purchased over a period of 30 months. I would like to add a feature indicating what the general trend of ...
90 views

### How to interpret insignificant intercept in logistic regression with orthogonal polynomial encoding

I have conducted a logistic regression. Model <- logistf(A ~ C, family ="binomial"(link = "logit"), data=Data) The dependent variable is ...
21 views

### Why does level means coding only work for one (dummy) variable?

Consider the following reproducible example: ...
7 views

### Ability of neural network for regression to learn to predict input 0 where functional form doesn't hold for the data at input 0

Hopefully the title to this question wasn't too confusing. I have a feed-forward neural network with $tanh$ activation functions on each of the (four) hidden layers. I'm performing a one-dimensional ...
34 views

### plot probabilities from mixed effect logistic regression with random intercept and fixed continuous and categorical covariate

I have created a mixed-effect logistic regression model with a random intercept, a ...
2k views

### Machine learning - use of intercept in regression? [closed]

what is the purpose of adding the intercept in regression. why we are adding the bias. How we can predict if we have only dependent variable not any independent variable.
127 views

### What is the role of an intercept in testing the linear hypothesis b1 = -b2?

EDIT2: Possibly the short version of the question is just how would I test cat2 = cat3 in the STATA example in the link below I would like to test the hypothesis that \$\beta_{typeprof} = -\beta_{...
16 views

### Count Time Series Following Generalized Linear Models - Questionable Intercept

I am attempting to appropriately examine the relationship between a count time series variable (outcome) and a continuous, mean-centered time series variable (predictor). ...
237 views

### How to report variance components of random intercept model?

I have used: model1 <- glmer(binary~ X1 + X2 +(1|MAINCATEGORY/YEAR), data = mydata, family = binomial(link = 'logit') To get the variance components of the ...
39 views

### How to fit the intercept

I'm practising using R and I'd like to do this task: So I fitted the model: ...
20 views

### How to interpret the intercept of a multiple regression analysis after accounting for continuous and categorical variables

I'm attempting to run a regression analysis on a continuous outcome variable y, using a primary predictor variable that represents a treatment (...
314 views

### The definition of a constant term in a fixed effects model

Is it considered necessary to include a constant term in the definition of a panel data model which. among other regressors, includes a variable representing fixed effects?
35 views

### How to interpret an insignificant intercept in a model with significant coefficients?

Imagine a regression with one dependent variable (y) and two explanatory variables (x1 and x2). Both coefficients of x1 and x2 are significant. But the intercept is around 0.1 is not significant. How ...
25 views

### How do we explain together the results of paired t-tests and simple linear regression?

Description of my experiment: I have 2000 samples. For each sample I am measuring a metric Mi using four different methods A,B,C and D. These methods of measurement are completely independent. Ideally,...
17 views

### Does mean centering help with intercept estimation?

Suppose a model is built to model the sales of 20 beer brands for thousands of stores across the U.S. The response variable is sales and the independent variables include marketing activity and ...
52 views

### Effect of treatment in a model with random effects

I am working with Eyes (volume), each person has two eyes and I am using random effects to account for this in my model. (linear mixed effects model) The problem with nlme is that the output needs ...
38 views

### How if the coefficient constant Insignificant when Estimate ARMA?

I'm doing my thesis about estimate Volatility where I use ARMA for Mean Equation. when I'm trying to estimate the ARMA, I get Insignificant for coefficient constant but the AR and MA both are ...
240 views

### How is mean calculated in ARIMA models?

I am currently working with ARIMA models and I am a little confused about the way they are formulated. I found Rob J. Hyndman's blog post "Constants and ARIMA models in R" explaining it. But still, I'...
69 views

### Extremely high intercept from Elastic Net

I am using the ElasticNet library from sklearn. I am using one predictor which takes values in the range [827.559, 827.5625]. When I fit the model using this ...
19 views

### Why are the intercept values of my QR non-monotonic?

I was led to believe that when conducting quantile regression you would expect intercept values to increase as you go up quantiles. However, I have run a quantile regression and the intercepts are as ...
assume we have the regression model: $$Y = b_0 + b_1 x_1 + \dots + b_k x_k + \varepsilon$$ I know the formulas for all type III sum of squares for the regression terms except the formula for SS of ...