Hi,
I am a bit confused as to what is the difference between dummy and factor variables and whether they are the same. For example, is generating a dummy variable by doing 'gen dummy=0' and then 'replace dummy=1 if var1<3' for example the same as keeping all the categories of a certain variable and just specifying the prefix i. infront of it in the regression? Similarly, is this also equivalent to doing: 'tabulate dummy, gen(m)' for example?
I am a bit confused as to what is the difference between dummy and factor variables and whether they are the same. For example, is generating a dummy variable by doing 'gen dummy=0' and then 'replace dummy=1 if var1<3' for example the same as keeping all the categories of a certain variable and just specifying the prefix i. infront of it in the regression? Similarly, is this also equivalent to doing: 'tabulate dummy, gen(m)' for example?
Comment