# Questions tagged [regression]

Techniques for analyzing the relationship between one (or more) "dependent" variables and "independent" variables.

29,849 questions
Filter by
Sorted by
Tagged with
4 views

### Continuous mixture distribution

I am currently working on the derivation of the negative binomial distribution as a result of a continuous mixture of Poisson and Gamma distribution for regression purposes. To obtain the entire ...
1 vote
27 views

### Linear regression on categorical variable, how to interpret the F-statistic?

I am using statsmodels to fit a regression: smf.ols(formula=change ~ C(location))` where change is a continuous variable. I have a lot of locations and some of the ...
147 views

### The best interpretable regression model currently

I'm seeking recommendations for explainable regression models for tabular data. I'm looking for approaches that offer a balance between complexity and interpretability – something more sophisticated ...
1 vote
417 views

### How to identify coefficients for all levels of categorical variables when you have multiple of them

I have an equation like y ~ x1 + x2 + x3 + x4 where the first 3 variables are categorical and the last one is continues. I want to identify the coefficients for all ...
3 views

### What are the conditions to specify the regressors in Heckman 2 step model

I have the issue of interpreting the STATA command Twostep Heckman model, and also adding fixed effects to the model. My analysis is based on a panel dataset and I want to solve for the selection bias ...
524 views

### does a scaled multi output neural network result in a scaled RMSE?

Ive scaled my data to be in the range 0-1. ive used this scaled data to train a deep neural network, ...
1 vote
113 views
+50

### When should I standardize, before or after a regression?

I have a panel dataset and my dependent variable is the logit-transformed share of farm workers on long-term contracts. I am particularly interested in the effects of two variables, pastoral focus in ...
546 views

### If I want to adjust survival analysis for a covariate, like age, should I add it "smth+age" or add an interaction with it "smth*age"?

I have a survival analysis with a categorical predictor called "smth". I want to adjust it for age. I don't have any idea if they can interact or not but I guess they can. Now, about the the ...
616 views

### Transforming a natural log of a variable into the original variable

I am using a replication dataset for a research, and one variable (GDP per capita) is included in the dataset only as a natural logarithm. Is it possible to transform the ln(GDP per capita) back into ...
275 views

### How to validate a regression model in extrapolation territory?

I'm dealing with a regression problem and have two datasets at my disposal. Dataset A is properly labeled and I use it to fit and validate my model, B is unlabeled and I can only visually inspect ...
22 views

### What model is appropriate for measuring the correlation between two proportions?

Explanation: I have a dataset (say n=100 samples) with two data types associated with each sample (genetic and ecological). I'm resampling the dataset such that I take a random draw of n samples (2, 3,...
14 views

### How to resolve the residual versus predicted quantile devation (Dharma plot)?

I have been trying to perform beta regression modeling with random effects. I have sex ratio as the response variable, and climatic variables + years (1970-2021) as predictor variables. Different ...
1 vote
227 views

### How to apply EM algorithm in case of mixture distribution?

I am familiar with regression linear models, and EM algorithms. However, I do not get the idea of fitting the mixture of regression linear models using the EM algorithm. So, what I think about it is ...
1 vote
8 views

### Potential heteroskedasticity in maximum likelihood

I've created a bad loan classifier model using logit regression and maximum likelihood. The actual v expected comparison of the result is shown below. In order to create the chart, we binned the ...
1 vote
317 views

### What does it mean when SSR>SST?

Following is an example of the observed and predicted values for my variable y (in R). ...
175 views

### What causes the parameter phi (precision) to be very small in beta regression (by betareg in R)?

I tried to do a beta regression for a variable affected by age and intimacy, but it did not work well. The value of phi (precision) estimated by maximum likelihood method is very small, and when I ...
517 views

### Question about sliding differences contrast coding rationale

I've been reading up on sliding differences coding (forward differences coding, on the ucla page: http://www.ats.ucla.edu/stat/r/library/contrast_coding.htm). Here is the contrast matrix recreated ...
1 vote
65 views

42k views

### What is the problem with using R-squared in time series models?

I have read that using R-squared for time series is not appropriate because in a time series context (I know that there are other contexts) R-squared is no longer unique. Why is this? I tried to look ...
189 views

### Force a rma.mv fitted model to have the intercept value equal to 1.0 in R

I'm new in this blog and my knowledge in R is very weak. However, I was trying to set the intercept at 1 in the following rma.mv ('metafor' package) function: ...
9 views

### Creating a light image generation model for a specific distribution

I am currently working on how a user can introduce bias in a neural network model. To do so, I am creating an image2image model that only works on the training distribution. For example, let's say I ...