BookmarkSubscribeRSS Feed
Arsenio_Staer
Calcite | Level 5

Dear all,

This should be a simple question. All datasets i export from SAS to Stata using code below end up with all variables low case although they were a mix of low and upper case in SAS.

PROC EXPORT DATA=lib.foo /* exporting for panel regression in stata for panel regression */

            FILE="t:\my docs\lib.foo.dta"

            DBMS=STATA REPLACE;

RUN;

Using R 2.13, same dataset and the code below,

write.dta(lib.foo, file=paste(df.project.path,"/","lib.foo.dta", sep=""))

conserves the casing of the variables. Have been searching around for the cause, but no luck. Would appreciate any help!

Thanks,

Arsenio

2 REPLIES 2
Arsenio_Staer
Calcite | Level 5

Still haven't been able to figure it out. It's a rather strange coercion given that both SAS and Stata support mixed case var naming.

Any advice?

Linlin
Lapis Lazuli | Level 10

you may find something information from the bottom part of the link https://communities.sas.com/message/119093#119093.  there are options (such as VALIDVARNAME) to control cases.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 14159 views
  • 0 likes
  • 2 in conversation