Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: R: dictionary problem
From
"Carlo Lazzaro" <[email protected]>
To
<[email protected]>
Subject
st: R: dictionary problem
Date
Wed, 16 Oct 2013 14:57:24 +0200
Matthew may want to take a look at Stat/Transfer (http://stattransfer.com/).
Kind regards,
Carlo
-----Messaggio originale-----
Da: [email protected] [mailto:[email protected]] Per conto di DeMichele, Matthew
Inviato: mercoledì 16 ottobre 2013 14:48
A: [email protected]
Oggetto: st: dictionary problem
Hello statalisters:
I've been tasked with transferring SAS setup codes for a large survey into Stata and SPSS. The SPSS conversion has gone pretty smoothly and the setup files run (which makes sense because SAS and SPSS have many programming similarities). Stata, on the other hand, is not going as smoothly.
I'm new to running Stata dictionary files, so I assume I'm making a simple mistake that may be obvious to the more experienced Stata users. My dct file is abbreviated below (and the variable names and values are altered because of the nature of the collection), as well I've left out several variables in the output just for simplicity sake (i.e., the gap between line 25 and 131). Any suggestions are greatly appreciated.
Best regards, Matthew
. infile using `dict', using (`raw_data') clear
dictionary {
_lines(1)
_line(1)
_column (1) int db %8f " BIRTH"
_column (9) int pd %8f " ADMISSION "
_column (17) int pr %8f " RELEASE"
_column (25) int pe %8f " ELIGIBILITY "
.....
_column (131) str osc_1 %8s "OFFENSE #1 -"
str already defined
dictionary invalid
r(614);
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/