spss - Creating a dummy variable from a string variable -


i'd create dummy variable string variable (q1) different comments in syntax. if q1 empty paste 0 q1_d , if q1 has text inside paste 1 q1_d.

compute q1_d=length(q1)>0.  

which create dichotomous 0/1 variable q1_d. if row case data @ q1 has data/characters 1 (one) assigned @ q1_d else if q1 equals empty string 0 (zero) assigned.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -