Method: First enter "ssc install asdoc, replace" in Stata to install the external command "asdoc"; then enter "asdoc reg price mpg weight" in the data; finally generate a file named "Myfile.doc" ” file.
The operating environment of this tutorial: Windows 7 system, Microsoft Office word 2013 version, Dell G3 computer.
First, enter the code (ssc install asdoc, replace) in Stata to install the external command asdoc.
#After the installation is complete, open our data. The editor uses the data auto that comes with Stata as an example.
Next, the editor will do a regression analysis of the mpg and weight variables on the price variable, and export the results directly to Word. Enter the command: asdoc reg price mpg weight. As shown in the figure, Stata will automatically generate a file named "Myfile.doc".
Click to open the Myfile.doc file. You can see that the regression analysis results we want have been exported to the Word document.
After that we just need to adjust the format
For more computer related knowledge, please visit FAQ column!
The above is the detailed content of How to export stata results to word. For more information, please follow other related articles on the PHP Chinese website!

stata字符型数据转数值型的方法:1、destring命令,语法“destring 变量名, 生成新变量名 选项”;2、real函数,语法“generate 新变量名 = real(字符型变量名)”;3、encode和decode命令,语法“encode 字符型变量名, generate(数值型变量名)”、“decode 数值型变量名, generate(字符型变量名)”。

在之前的文章《实用Word技巧分享:详解怎么更改图片颜色和形状》中,我们了解了更改图片颜色和图片形状的方法。而今天我们来聊一聊word表格,讲解美化表格--自定义表格样式的方法,快来看看吧!

在之前的文章《实用Word技巧分享:聊聊你没用过的“行号”功能》中,我们了解了Word中你肯定没用过的"行号”功能。今天继续实用Word技巧分享,看看Excel表格怎么借用Word进行分栏打印,快来收藏使用吧!

在之前的文章《实用Word技巧分享:设置页码的终极方法!》中,我们学习了Word页码的设置方法。而今天我们来一起聊聊Word文本间距设置的几个技巧,快来收藏使用吧!

在之前的文章《实用Word技巧分享:隐藏图片,提升文档浏览和编辑效率!》中,我们学习了隐藏图片的技巧,可提升文档浏览和编辑效率。下面本篇文章再给大家分享一个实用Word技巧,看看怎么让页面自动滚动,快来收藏使用吧!

在之前的文章《实用Word技巧分享:表格自定义样式,美化表格!》中,我们了解了自定义表格样式的方法。而今天我们来聊一聊word脚注和尾注,介绍一下脚注和尾注的设置使用方法,快来看看吧!

在之前的文章《实用Word技巧分享:怎么跨文档快速复制样式》中,我们了解了在文档间快速复制样式的方法。今天我们聊聊Word快捷键,聊聊【F4】键快速统一图片大小,快来看看吧!

在之前的文章《实用Word技巧分享:图、表如何自动编号?》中,我们了解了Word排版-让图、表自动编号的方法。而今天聊聊Word精确控制页面“行数”和“字符个数”的方法,快来看看吧!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
