Like stata, just more annoying
How does R work?


Like stata, just more annoying
Much easier for doing Monte Carlo though.

Like stata, just more annoying
Much easier for doing Monte Carlo though.
Like anyone actually does that

Like stata, just more annoying
Much easier for doing Monte Carlo though.
Like anyone actually does that
Most people don't. If you create an estimator and want to show how well it performs in small samples, Monte Carlo is the way to go.

you just need beta < solve(t(X) %*% (X)) %*% t(X) %*% Y

you just need beta < solve(t(X) %*% (X)) %*% t(X) %*% Y
Tell OP how to get robust se

format c:

X'x inverse mofo
you just need beta < solve(t(X) %*% (X)) %*% t(X) %*% Y

X'x inverse mofo
you just need beta < solve(t(X) %*% (X)) %*% t(X) %*% Y
solve()?

I made a mistake. I'm correcting it here:
Step 2: type the following into R:
# Tell R which directory you're using
setwd("c:\documents")
# Import file
my_data < read.csv("my_new_file.csv")
# Run a regression
my_ols < lm(my_data$y ~ my_data$X1 + my_data$X2 + my_data$X3)
# View results
summarize(my_ols)
what about this:
my_ols < lm(y ~ X1 + X2 + X3, data=my_data)

That would work too

lol at stupid social scientists discusssing programming and software :)
 BSc Computer Science

I made a mistake. I'm correcting it here:
Step 2: type the following into R:
# Tell R which directory you're using
setwd("c:\documents")
# Import file
my_data < read.csv("my_new_file.csv")
# Run a regression
my_ols < lm(my_data$y ~ my_data$X1 + my_data$X2 + my_data$X3)
# View results
summarize(my_ols)
what about this:
my_ols < lm(y ~ X1 + X2 + X3, data=my_data)This is better. Thank you.