I'm trying to import SAS formats for CDC's Youth Risk Behavior Survey. I have the SAS data set file and format catalog. They work in SAS, but when I try to import them into Stata they bomb.
My command is:
import sas using "C:\yrbs\yrbs2019.sas7bdat", bcat("C:\yrbs\formats.sas7bcat") case(lower)
But I get a series of error messages, even though the SAS formats are legal and work in SAS.
note: invalid string value for value label H1S, skipped
note: invalid string value 1 for value label H1S, skipped
note: invalid string value 2 for value label H1S, skipped
note: invalid string value 3 for value label H1S, skipped
note: invalid string value 4 for value label H1S, skipped
note: invalid string value 5 for value label H1S, skipped
note: invalid string value 6 for value label H1S, skipped
note: invalid string value 7 for value label H1S, skipped
note: no values defined for value label H1S, removed
Any thoughts on how to fix this?
Related Posts with Problem importing SAS formats
Fitting dynamic random-effects probit model - xtdyn-Hi all, I have some questions regardings the dynamic random-effects probit model, especially with t…
Coding for medication dataHello! I am using medication data for thousands of observations. I have calculated the total daily …
Removing numbers from text in labelsHi, I used sencode command in order to display the label's codes and text in the variable labels (in…
no observations r(2000) error after some observations, event study princetonHi everyone, I am running event study using princeton example https://dss.princeton.edu/online_hel.…
Ordered probit before applying ivregress 2sls commendBy following Dr. Woodridge's advice on Statalist, I applied the ordered probit before I ran the two-…
Subscribe to:
Post Comments (Atom)
0 Response to Problem importing SAS formats
Post a Comment