variable as int, but acting like strng

variable as int, but acting like strng

by Marissa -
Number of replies: 2

When I am trying to see the list of my participants and their anxiety scores (tab id anx) it gives me several columns, first is the id, and next are all the different scores, the table than is all 0s and 1s indicating frequency of that score for the  id, its does the same thing for a dotplot such that is calculates frequency. i've tried changing the variable to int, byte, float and nothing seems to help. any ideas?

I imported my data from excel and also tried copy and paste-ing -- wasn't sure if this was contributing to the problem.

 

Thank you.

 

In reply to Marissa

Re: variable as int, but acting like strng

by Valy Fontil -

Hi Marissa.

Try this command: list id anx. 

You can also do browse id anx

Assuming the anxiety score is continuous variable, the tab command would not be appropriate. Tab is used to describe categorical variables. Commands that describe continuous variables are bystat, sum, and bysort.

If you want to list (look at) your data, browse and list commands are your best options. You can also just click on the browse icon.   

In reply to Valy Fontil

Re: variable as int, but acting like strng

by Marissa -