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