0

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

  1. range of years
  2. 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

  • Welcome to SO! Please clarify your question - if you want to re-create a table of summary statistics, then why are building a linear model? Additionally, your code is not [reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) as you have not provided your dataset. – jrcalabrese Nov 21 '22 at 01:35

0 Answers0