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
Calculate present value by loanIDHi, I have a data set that contains loan payments data. I would like to calculate the present value…
Data reshape wide to longHello, I have run into a data reshape problem, Table 1 provides the information about the dataset. …
Diff-in-Diff estimator collinearity issueHi all, I am researching the causality of the plain package on the proportion of smokers with Diff-i…
When to use balancing weightsHello Folks, Good evening. I am using a dataset that comes with two weight variables: VariableX for…
Interpretation of coefficients with interaction term with odds ratios (logit regression)Hi, I want to clarify the interpretation the effect of a variable when an interaction term is includ…
Subscribe to:
Post Comments (Atom)
0 Response to Problem importing SAS formats
Post a Comment