Hello,
I have a SAS dataset of PRAMS data that I want to analyze in Stata. I do not have SAS on my computer. I successfully converted the SAS data to a Stata file using the code "import sas using "filename.sas7bdat", bcat("formats.sas7bcat") where the first file is the data file and the second file (formats) is the value labels file. However, I am getting errors with the value labels. For every variable it says "note:invalid string value C for value label CPNU, skipped" or "note:invalid numeric value for value label DRINKF, skipped" or "no values defined for value label STRAT2KS,removed" etc. Does anyone have advice on how to fix this? I am baffled.
Thank you,
Sarah
I have a SAS dataset of PRAMS data that I want to analyze in Stata. I do not have SAS on my computer. I successfully converted the SAS data to a Stata file using the code "import sas using "filename.sas7bdat", bcat("formats.sas7bcat") where the first file is the data file and the second file (formats) is the value labels file. However, I am getting errors with the value labels. For every variable it says "note:invalid string value C for value label CPNU, skipped" or "note:invalid numeric value for value label DRINKF, skipped" or "no values defined for value label STRAT2KS,removed" etc. Does anyone have advice on how to fix this? I am baffled.
Thank you,
Sarah
Comment