Articles by Economics and R - R posts

Puzzling Regression Anatomy

July 1, 2020 | Economics and R - R posts

Consider a regression model with the following causal structure: The variable x1 affects y directly and also indirectly via x2. The following R code implements the model and simulates a corresponding data set. set.seed(1) n = 10000 beta1 = 1; bet... [Read more...]
1 2 3 4

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)