全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
10871 7
2011-07-16
我想把我的一个stata文件(有80m左右)转换为sas格式,以前都用StatTransfer软件转换数据,但是现在这个数据根本转换不了,请问谁知道怎么转,最好有sas的转换程序。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-11-12 11:29:16
我也想把stata的数据转成sas的,7.02的版本我又,只是不支持。人大论坛https://bbs.pinggu.org/forum.php? ... D%BE%DD%D7%AA%BB%BB,有StatTransfer 9.0 破解版 (数据转换工具) 。但是我的数据还是转换有有问题,不知道还有没有其他软件可以转,数据转换器(通用版)是我网上搜索到的,不知道可以否
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-11-12 13:06:45
直接导入
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-11-12 20:43:36
How do I use a Stata data file in SAS?

1. Reading a Stata file up to version 9 with SAS
SAS 9.1.3 currently supports Stata up to version 9 via proc import.  The following example shows how to use SAS proc import to read in a Stata data file hsb2.dta.  It is advisable to check the log file and use proc contents to ensure the data have been read correctly. Notice that SAS recognizes the file type to be imported by file extension.

proc import out= hsb2 datafile = "c:\data\hsb2.dta";
run;
proc contents data=hsb2;
run;
2. Saving a Stata data file as a version 9 file
It is easy to save a data file as a version 9 file with the saveold command.  The saveold command in Stata 10 saves a Stata version 10 data file as a Stata version 9 file.  Here is an example.

use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear(highschool and beyond (200 cases))
saveold "c:\data\hsb2old.dta"
file c:\data\hsb2old.dta saved
3. Using Stat/Transfer
The most updated version of Stat/Transfer will recognize Stata 10 files and converting Stata data files to SAS is fairly straightforward.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-11-12 20:43:44
How do I use a Stata data file in SAS?

1. Reading a Stata file up to version 9 with SAS
SAS 9.1.3 currently supports Stata up to version 9 via proc import.  The following example shows how to use SAS proc import to read in a Stata data file hsb2.dta.  It is advisable to check the log file and use proc contents to ensure the data have been read correctly. Notice that SAS recognizes the file type to be imported by file extension.

proc import out= hsb2 datafile = "c:\data\hsb2.dta";
run;
proc contents data=hsb2;
run;
2. Saving a Stata data file as a version 9 file
It is easy to save a data file as a version 9 file with the saveold command.  The saveold command in Stata 10 saves a Stata version 10 data file as a Stata version 9 file.  Here is an example.

use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear(highschool and beyond (200 cases))
saveold "c:\data\hsb2old.dta"
file c:\data\hsb2old.dta saved
3. Using Stat/Transfer
The most updated version of Stat/Transfer will recognize Stata 10 files and converting Stata data files to SAS is fairly straightforward.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-10-4 03:50:32
不错...
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群