- 21
- 0
- 约2.93千字
- 约 20页
- 2021-04-21 发布于浙江
- 举报
2021年4月20日星期二
《计量经济学软件应用》
1
一、基本描述统计量
summarize命令
可概括观测值个数、平均值、标准差、最大值和最小值五个指标。
语法:summarize varlist [in] [if] [weight] [,options]
选项:detail可统计方差、偏度、峰度和各个分位数等指标。
范例:summarize price mpg
2021年4月20日星期二
《计量经济学软件应用》
2
菜单:Statistics Summaries, tables, and tests Summary and descriptive statistics Summary statistics
2021年4月20日星期二
《计量经济学软件应用》
3
tabstat命令
语法: tabstat varlist [if] [in] [weight] [, options]
选项:默认结果是均值。
by(varname) 按变量varname进行分组描述性统计;
statistics(statname [...]) 报告指定的描述性统计指标值。
nototal不报告总体统计值,通常是与by()配合使用
missing用by()选项时,显示by()变量的缺失值也作一类的结果。
范例:tabstat price mpg, by(id) statistics(mean ma mi sd n) missing
2021年4月20日星期二
《计量经济学软件应用》
4
菜单:StatisticsSummaries, tables, and tests TablesTable of summary statistics (tabstat)
2021年4月20日星期二
《计量经济学软件应用》
5
ameans命令
估计算术、几何和调和平均数
语法:ameans [varlist] [if] [in] [weight] [,options]
范例:ameans price
2021年4月20日星期二
《计量经济学软件应用》
6
菜单:Statistics Summaries, tables, and tests Summary and descriptive statistics Arith./geometric/harmonic means
2021年4月20日星期二
《计量经济学软件应用》
7
二、单个分类变量的汇总统计
tabulate/tab1命令
对分类变量的描述统计是观察其不同类别的频数或百分数。
语法1:tabulate varname [if] [in] [weight] [, options]
语法2: tab1 varlist [if] [in] [weight] [, options]
选项:missing缺失值也作一类,plot作柱状图
范例:tabulate foreign/tab1 foreign id
2021年4月20日星期二
《计量经济学软件应用》
8
菜单1: Statistics Summaries, tables, and tests Tables One-way tables
2021年4月20日星期二
《计量经济学软件应用》
9
菜单2:Statistics Summaries, tables, and tests Tables Multiple one-way tables
2021年4月20日星期二
《计量经济学软件应用》
10
三、两个分类变量的列联表
列联表是考察两个分类变量相关关系的方法
列联表给出从属于两个分类变量不同类别的观测值的频数
如果两个分类变量各有r,c个类别,则列联表共有r×c个单元格
2021年4月20日星期二
《计量经济学软件应用》
11
tabulate命令:
语法1——指定两个变量的列联表
tabulate varname1 varname2 [if] [in] [weight] [, options]
范例:tabulate foreign id
2021年4月20日星期二
《计量经济学软件应用》
12
菜单:Statistics Summaries, tables, and tests Tables Two-way tables with measures of association
2021年4月20日星期二
《计量经济学软件应用》
13
语法2——多个变量内存在的所有可能列联分析结果
tab2 varlist [if] [in] [weight] [, options]
范例:tab2 foreign id rep78
2021年4月20日星期二
《计量经济学软件应用》
14
菜单:Statistics S
您可能关注的文档
最近下载
- 英语语法大全-英语语法大全.pdf VIP
- 英语语法大全-英语语法大全.pdf VIP
- T_NAHIEM 164-2026(医院介入中心(导管室)建设与设备配置).pdf
- 基于ros移动机器人的视觉导航研究.docx
- 6《变色龙》 课件(共18张PPT).pptx VIP
- 小米智能BLE模组(MHCB05P-B&MHCB05P MHCB05P-B+规格书.pdf
- 2025春统编版(2024)道德与法治一年级下册教学计划.docx VIP
- 2025版本成人胃肠功能障碍患者营养治疗指南解读最终版PPT演示课件.pptx VIP
- 最强大脑总题库之一(共800题).pdf VIP
- 病房护理设备器具项目绩效评估报告.docx VIP
原创力文档

文档评论(0)