hello everyone, I have some trouble creating two dummy variables. I have a dataset with the variables text and job.
Text is either empty or contains different sentences. The dummy variable i.text should be 1 for the sentences and otherwise 0.
Job is either teacher or craftsman. The dummy varibale i.job should be 1 for teacher and otherwise 0.
Thanks in advance
Thomas
Related Posts with dummy variables
Replacing values in one goIn my data set, the values of a string variable are composed of more than one word. Hence there is a…
Calculating AARs and CAARs and their t-testsDear forum members, I am currently performing event study in M&A setting. I calculated ARs and …
Add significance stars to F-stat with esttabDear all, I was wondering how to add significance stars for F-stat in my tables with esttab. I trie…
How to create binary variables from a composite string variableDear Community, I am relatively new to Stata and am still learns how to use macros and loops which I…
Joint significance of FEs using PPML estimatorHello statalists, Using the PPML estimator to estimate a gravity model of the form; ppml_panel_sg …
Subscribe to:
Post Comments (Atom)
0 Response to dummy variables
Post a Comment