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
Difference-in-Difference with continuous variables and fixed effectsDear Stata friends I try to run a difference-in-difference regression with a continuous treatment (…
How to count each binary variables and only generate one variable to include all count information?Hi there, I have a set of binary variables and each of them stands for a certain health disease (e.…
How to make a binary outcome variable of 3 other variablesHi all, My outcome variable is Entrepreneur =Yes=1 and Entrepreneur = No=wageworker=0 I'm using GEM…
discrete-time survival analysis (xtcloglog)Hi everyone, I am running a discrete-time survival analysis about firm survival on an unbalanced pan…
Double loops in Stata?Dear All, I want to do the following: Code: local replace replace forvalues i = 2007(1)2017 { for…
Subscribe to:
Post Comments (Atom)
0 Response to Problem importing SAS formats
Post a Comment