楼主: kaeod
16804 19

[数据管理求助] 在线等,急急急!如何将stata格式的数据转化为excel格式 [推广有奖]

  • 2关注
  • 1粉丝

硕士生

61%

还不是VIP/贵宾

-

威望
0
论坛币
1138 个
通用积分
1.0029
学术水平
1 点
热心指数
8 点
信用等级
0 点
经验
2036 点
帖子
201
精华
0
在线时间
137 小时
注册时间
2009-8-12
最后登录
2018-11-10

楼主
kaeod 发表于 2013-3-18 11:59:10 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
有一个数据文件是.dta格式的,我想将其保存为.xls格式的。
我尝试了复制,但是因为数据太多了,复制后有一些地方错位了,我也没法逐一改。我也试了什么stat transfer软件,也不可以。
我第一次用stata,应该有转换的命令,求助哪位好心人给我写一下命令?
明天就要交论文了,现在数据分析还没开始,在线等啊!急急急~~~

二维码

扫码加我 拉你入群

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

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

关键词:Excel格式 Stata EXCEL xcel tata excel 好心人 在线 如何

茶凉了还不想走

沙发
蓝色 发表于 2013-3-18 12:09:54

Title

    [D] import excel -- Import and export Excel files


Syntax

    Load an Excel file

        import excel [using] filename [, import_excel_options]


    Load subset of variables from an Excel file

        import excel extvarlist using filename [, import_excel_options]


    Describe contents of an Excel file

        import excel [using] filename, describe


    Save data in memory to an Excel file

        export excel [using] filename [if] [in] [, export_excel_options]


    Save subset of variables in memory to an Excel file

        export excel [varlist] using filename [if] [in] [, export_excel_options]


    import_excel_options                 Description
    -------------------------------------------------------------------------------------------------------------
    sheet("sheetname")                   Excel worksheet to load
    cellrange([start][:end])             Excel cell range to load
    firstrow                             treat first row of Excel data as variable names
    case(preserve|lower|upper)           preserve the case (the default) or read variable names as lowercase or
                                           uppercase when using firstrow
    allstring                            import all Excel data as strings
    clear                                replace data in memory

    locale("locale")                     specify the locale used by the workbook
    -------------------------------------------------------------------------------------------------------------
    locale() does not appear in the dialog box.


    export_excel_options                 Description
    -------------------------------------------------------------------------------------------------------------
    Main
      sheet("sheetname")                 save to Excel worksheet
      cell(start)                        start (upper-left) cell in Excel to begin saving to
      sheetmodify                        modify Excel worksheet
      sheetreplace                       replace Excel worksheet
      firstrow(variables|varlabels)      save variable names or variable labels to first row
      nolabel                            export values instead of value labels
      replace                            overwrite Excel file

    Advanced
      datestring("datetime_format")      save dates as strings with a datetime_format
      missing("repval")                  save missing values as repval

      locale("locale")                   specify the locale used by the workbook
    -------------------------------------------------------------------------------------------------------------
    locale() does not appear in the dialog box.

藤椅
熊豚豚 发表于 2013-3-18 12:15:15
我也在找这个。。哈哈。现在知道了。

板凳
蓝色 发表于 2013-3-18 12:32:24

sysuse  auto, clear
export excel d:\auto.xlsx
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
dcwang1233 + 1 + 1 + 1 精彩帖子

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

报纸
kaeod 发表于 2013-3-18 12:37:31
蓝色 发表于 2013-3-18 12:32
sysuse  auto, clear
export excel d:\auto.xlsx
不对呀~~我的数据有几万个~这里面只有几个~
茶凉了还不想走

地板
kaeod 发表于 2013-3-18 12:38:00
熊豚豚 发表于 2013-3-18 12:15
我也在找这个。。哈哈。现在知道了。
那你告诉下我呗~
茶凉了还不想走

7
kaeod 发表于 2013-3-18 12:38:27
蓝色 发表于 2013-3-18 12:09
Title

    [D] import excel -- Import and export Excel files
版主~怎么这么复杂,我只需要个命令~
茶凉了还不想走

8
熊豚豚 发表于 2013-3-18 12:48:03
kaeod 发表于 2013-3-18 12:38
那你告诉下我呗~
上楼不是有人回答了么?我就是要找分析结果输出的命令啊。。

9
kaeod 发表于 2013-3-18 12:53:55
熊豚豚 发表于 2013-3-18 12:48
上楼不是有人回答了么?我就是要找分析结果输出的命令啊。。
他写太多了  我不是分析结果  我是dta的数据直接转化成xls~~你会写命令么?
茶凉了还不想走

10
ppuubo 在职认证  发表于 2013-10-20 16:42:05
直接复制粘贴到excel中

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-28 15:12