Relative Content

Tag Archive for stata

two different encoding in STATA Dataset

I need to import data from a Microsoft SQL Server View into STATA. I do that using odbc. That works also great. Unfortunately, I have two variables with an encoding Problem. Both Variables contain strings that have Umlaute in the german language (ä, ö, ü, ß). The weird thing is, that there are other variables containing Umlaute which are shown correctly. I used filefilter to change the encoding to utf-8, which corrected the two variables. But now all the others are not shown correctly anymore. Unicode analyze gave me the following output:

Stata regression table

I need help creating a regression table in Stata for LaTeX. I want to include different regression specifications (in columns) and different outcome variables (in rows) in the same regression table. Here is what I have so far:
Adding Control:

did_multiplegt_dyn with controlvariables

I run a staggered DiD regression with the Stata command did_multiplegt_dyn by De Chaisemartin, C., & d’Haultfoeuille, X. (2024). Without control vars the command runs

Lagged range in if statement

I have successfully used lagged values in the “IF” section of a replace. How do I specify a range instead of each individual lagged variables. Iteration is not an option. I have ~10million observations.