Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 151862

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

2 votes
0 answers
94 views

Can fixed effects models be validated with out-of-sample data?

Suppose I have a 2-way unit and time fixed effects model: $$y_{it} = a_i + b_t +X_{it}\beta + \epsilon$$ I collect data on a set of units $A$ and $B$, where $A$ and $B$ are disjoint. The data was coll …
badmax's user avatar
  • 2,251
3 votes
1 answer
292 views

How do I use the within transformation for logistic regression?

I would like to estimate a logistic regression model where the target variable $y_{it}$ is grouped. … continuous and the OLS model is transformed as: $$y_{it} - \bar y_i - \bar y_t + \bar y_{it} = (\bf x_{it} - \bar x_i - \bar x_t + \bar x_{it})\bf \beta$$ I don't see how this can be used in logistic regression
badmax's user avatar
  • 2,251
1 vote
1 answer
36 views

What can I do if scaling doesn't break correlation for quadratic terms?

Suppose I have this model: $$y = \beta_1x + \beta_2x^2 + \epsilon$$ I would like to fit it using OLS. In my data the correlation between $x$ and $x^2$ is $0.91$. After I rescale $x$ to zero mean and u …
badmax's user avatar
  • 2,251
0 votes
0 answers
68 views

How do you make dummies for collinear categorical variables?

How do I set up the dummies to fit a linear regression model? …
badmax's user avatar
  • 2,251
1 vote
0 answers
40 views

Should you include units with no intra-unit variation in fixed-effects models?

Is there any benefit in including these units in the regression? …
badmax's user avatar
  • 2,251
2 votes
1 answer
89 views

Can I use fixed effects regression with non-time-variant treatment?

Can I still use fixed effects regression? …
badmax's user avatar
  • 2,251
1 vote
0 answers
31 views

DFBeta Measures for Subsets of Variables

I need to calculate the DFBETA statistics for a logistic regression. The number of columns in the $X$ matrix is $3000$ and the number of records is in the millions. …
badmax's user avatar
  • 2,251
1 vote
0 answers
24 views

Can embeddings function as control variables?

Suppose I am building a linear regression model $$y = X + Z + \epsilon$$ where $X$ are covariates, $Z$ is a confounder, and $\epsilon$ is noise. …
badmax's user avatar
  • 2,251
1 vote
0 answers
22 views

Can I use the principal components of control variables in regression?

I am running a logistic regression and one of my control variables is categorical with $100$ categories. This leads to problems because some categories have $3$ data points, out of tens of thousands. …
badmax's user avatar
  • 2,251
1 vote
0 answers
203 views

What good are confidence intervals after regularization?

Suppose I run a regularized regression model such as Lasso. For simplicity let's say it's a linear model. …
badmax's user avatar
  • 2,251
3 votes
1 answer
301 views

Why does AIC select the wrong logistic regression model?

I've noticed a phenomenon with logistic regression: when the probability of success is small and number of trials large the AIC consistently selects the wrong models. …
badmax's user avatar
  • 2,251
1 vote
0 answers
38 views

How do I choose between regression methods for inference?

Take the log of $y$ and use a linear model, or use logistic regression. … Logistic regression is the more theoretically appropriate model but estimation can lead to problems (example) that the linear method doesn't have. …
badmax's user avatar
  • 2,251
1 vote
2 answers
2k views

Why do OLS and logistic regression coefficients have opposite sign?

The first is to take the log of $y$ and apply OLS regression. The second is to apply logistic regression to $y$ directly. … I noticed that one theoretically important coefficient, call it $x_0$, is highly significant in both models but in OLS it is estimated as a strong negative effect and in logistic regression it is a small …
badmax's user avatar
  • 2,251
3 votes
1 answer
61 views

How do I validate a regression model's inferences and not its predictions?

Suppose over many years I collect data $X$ on a quantity of interest $y$ and some control variables $Z$. I fit an OLS model $$y = \beta X + \delta Z + \epsilon $$ and use the coefficients $\beta$ and …
badmax's user avatar
  • 2,251
8 votes
1 answer
2k views

Do I need to adjust OLS standard errors after matching?

Then I run OLS regression with some covariates that were not necessarily included in the propensity score model. Do I need to adjust the standard errors in some fashion? …
badmax's user avatar
  • 2,251

15 30 50 per page