I trying to learn R as well as do my scientific paper, so I want to replicate the data in this way in R. I discovered that I should use the stargaze library, but I don't clearly understand how to divide one linear model by
- range of years
- dummies (rural=1 and urban=0)
I wrote a linear model:
yedu.lm<-lm(yedu ~ primary_graduate + junior_graduate + male + han_ethn + age, data = census_1990_clean)
added a table urban
census_1990_clean$urban <- ifelse(census_1990_clean$rural == 1, 0, 1)
I know that to create some tables using a stargaze I should do something like this