Skip to main content
2 votes

What is the R Equivalent of this Stata Survey Weighting Code?

You've got the regular expression for the weights wrong. The example "wt[1-9]+" in the help page already matches any name starting with wt then a digit ...
Thomas Lumley's user avatar
2 votes

Understanding differences in collinearity across Stata commands

reghdfe is different because, by default, it tries to deal with collinearity. I don't have Stata, but a little Googling found pages about this. It should be in the documentation for the program. The ...
Peter Flom's user avatar
  • 121k
2 votes

Double selection lasso in and NA's handling

One sort of a weak trick is to replace the missing values with some semi-reasonable number (you can use the mean), and code another variable missing_x = ...
StasK's user avatar
  • 31.7k

Only top scored, non community-wiki answers of a minimum length are eligible