1. T

    Logistic regression in Stata with binomial dependent variable 3-level categorical predictor variable

    Hi, I'm doing a logistic regression analysis with a binomial outcome variable (Yes / No). My main predictor variable is categorical and has 3 levels. I'm also including categorical and continuous confounding variables as predictors. What is the best way to convert my outcome variable from...
  2. S

    Multiple encode commands with foreach

    So I have a bunch of string variables that cannot be destringed and encode does the job. However, I have many and found this code especially compelling since it uses the names of the other variables so I don't have to do a lot of renaming. However I hit a snag; I get an error from this telling...