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 242191

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

1 vote
1 answer
2k views

If a regression is fit without an intercept, why are the fitted values a linear function of ...

Consider the model $y_i = \beta x_i + \varepsilon_i$ (simple linear regression without an intercept). … Consider the fitted values that result from performing linear regression without an intercept. …
Arturo Sbr's user avatar
1 vote
Accepted

If a regression is fit without an intercept, why are the fitted values a linear function of ...

So I stared at the question long enough. Turns out it's just a matter of playing around with the summation's indices. If we substitute $\hat{\beta}$ into $\hat{y}_i$ $$\hat{y}_i = x_i \frac{\sum_{i=1} …
Arturo Sbr's user avatar
1 vote
2 answers
231 views

What happens when there is no variation within a category in panel data?

I have a dataset with multiple rows per individual. Each row represents the number of items sold by an employee on a given day. Suppose I have thousands of employees, and each of them has roughly five …
Arturo Sbr's user avatar
1 vote
1 answer
228 views

Interpretation of coefficient in logistic regression

Let's say I have the following model: $$\ln\Big(\frac{\mathbb{P}(Y_i = 1 | X_i)}{\mathbb{P}(Y_i = 0 | X_i)}\Big) = \beta_0 + \beta_1 X_{1,i} + \beta_2 X_{2,i}$$ Let $\rho = \frac{\mathbb{P}(Y_i = 1 | …
Arturo Sbr's user avatar
1 vote
1 answer
89 views

Is modeling location as a categorical variable in an OLS regression considered a fixed effec...

In R, I turned the state variable into a factor and added it to the regression. …
Arturo Sbr's user avatar
0 votes
0 answers
1k views

How to set the number of knots in a regression spline

I want to fit fit a cubic regression spline and select the optimal number of knots via grid search. … # Fit step-functions on grid spline_tune <- tune_grid(object = spline_wf, resamples = cv, grid = spline_grid) It is my understanding that a regression spline has $(d + 1) + k$ degrees of freedom, where …
Arturo Sbr's user avatar
1 vote

Regression coefficients do not match conditional means

My regression model had six parameters. … In order for the regression coefficients to match the differences in conditional means, I had to add two additional interaction terms: $X_1 \times X_2$ and $X_1 \times X_2 \times T$. …
Arturo Sbr's user avatar
0 votes
0 answers
154 views

Interpretation of log-level regression coefficients

I am posting this question following this other question I posted earlier today. Suppose we have the following model: $$\ln Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + ... + \varepsilon $$ Why is a marg …
Arturo Sbr's user avatar
10 votes
1 answer
2k views

What distribution do OLS estimators follow when dependent variable is not normally distributed?

As far as I'm concerned, all the regression result tables I've seen in Python and R return $t$ statistics for each estimated coefficient. …
Arturo Sbr's user avatar
1 vote
3 answers
571 views

Regression coefficients do not match conditional means

In a nutshell, I want the regression coefficients of a model to match several differences in conditional means. You can download the data from this repo. … How come the linear regression results do not match the differences in conditional means? …
Arturo Sbr's user avatar
1 vote
1 answer
324 views

Test if regression coefficients are equal between periods of time

I have multiple observations per year and I was asked to estimate an individual regression line for each year within a single model. … In essence, this model fits one regression line per year to each group of observations. …
Arturo Sbr's user avatar
1 vote
1 answer
49 views

Interpretation of regression coefficient of logged variable (log X)

I am struggling to see why a one percent change in $X$ is associated with a $\frac{\beta_1}{100}$ change in $Y$ in the following model: $Y = \beta_0 + \beta_1 \ln X + \beta_2 W + ... + u$. It is clear …
Arturo Sbr's user avatar
1 vote

Interpret regression coefficients when dependent variable is standardized

I gave it some thought (sometimes posting here helps me structure my thought process) and this is what I came up with: $\frac{\delta z_i}{\delta X_1} = \frac{\delta \frac{y_i - \bar{y}}{\sigma_y}}{\de …
Arturo Sbr's user avatar
1 vote
1 answer
1k views

Difference in means vs OLS regression coefficients

That is: $$d_1 = E(Y|x_1=1, x_2=0) - E(Y|x_1=0, x_2=0)$$ $$d_2 = E(Y|x_1=1, x_2=1) - E(Y|x_1=0, x_2=1)$$ How does this approach compare to the following regression model? …
Arturo Sbr's user avatar
1 vote
1 answer
337 views

Interpret regression coefficients when dependent variable is standardized

Let's say we have the following regression model: $$z_i = \beta_0 + \beta_1 X_{1,i} + \beta_2 X_{2,1} + u_i$$ Where $z_i = \frac{y_i - \bar{y}}{\sigma_y}$ is the (standardized) dependent variable. …
Arturo Sbr's user avatar

15 30 50 per page