SHAZAM Community
Ask Your Question

How do I get Shazam to run my analysis?

asked 2014-12-07 15:35:11 +0000

Tolu gravatar image

It's my first experience with Shazam and it isn't going fine just yet. I exported the data from Stata to MS Excel and then to Shazam. I added to the worskspace and all seemed fine till I tried to run the summary stats. Shazam read an error in every row of my data. What am I doing wrong? How do I fix this problem? Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-12-08 03:43:00 +0000

updated 2014-12-08 03:45:21 +0000

This might happen if:

  1. the file format is incorrect
  2. you use a READ statement and also have the dataset set to AUTORead (only one should be done)
  3. the data contains invalid characters

Email the data file to SHAZAM Help (see homepage) if you still are having trouble and we will take a look at it.

edit flag offensive delete link more

answered 2014-12-10 09:02:08 +0000

Tolu gravatar image

Thanks. I got it sorted. First, SHAZAM doesn't like texts, all data must be numeric so I deleted all the text data and replaced with a suitable numeric data e.g replacing counties with FIPS codes. Gradually getting the hang of the software now. I was also using both the read and auto read at the same time. Now I know I should use just one of them.

edit flag offensive delete link more


SHAZAM can handle text data using the CHARVARS= option on the READ statement using a FORMAT statement and the FORMAT option. From the manual:

CHARVARS=Specifies the number of character variables. This option allows the input of character variables without using the FORMAT option. The character variables must be the leading variables in the data set. The data is read by recognizing blanks or commas as delimiters. If the character variable contains embedded blanks then the variable must be enclosed by quotes " ".

See a couple of examples here:

SHAZAMHelp gravatar imageSHAZAMHelp ( 2014-12-10 14:09:08 +0000 )edit

Thanks for your help.

Tolu gravatar imageTolu ( 2014-12-10 19:49:40 +0000 )edit
Login/Signup to Answer

Question Tools


Asked: 2014-12-07 15:35:11 +0000

Seen: 225 times

Last updated: Dec 10 '14