全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学
3228 6
2009-10-16
procstat.pdf
大小:(4.83 MB)

只需: 3 个论坛币  马上下载

Base SAS® 9.2
Procedures Guide
Statistical Procedures
(total pages 492)
二维码

扫码加我 拉你入群

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

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

全部回复
2009-10-19 11:55:30
Chapter 3
The FREQ Procedure
Contents
Overview: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Getting Started: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Frequency Tables and Statistics . . . . . . . . . . . . . . . . . . . . . . . . 66
Agreement Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Syntax: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
PROC FREQ Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
BY Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
EXACT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
OUTPUT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
TABLES Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
TEST Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
WEIGHT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Details: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Inputting Frequency Counts . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Grouping with Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Missing Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Statistical Computations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Definitions and Notation . . . . . . . . . . . . . . . . . . . . . . . 116
Chi-Square Tests and Statistics . . . . . . . . . . . . . . . . . . . . 117
Measures of Association . . . . . . . . . . . . . . . . . . . . . . . 122
Binomial Proportion . . . . . . . . . . . . . . . . . . . . . . . . . 131
Risks and Risk Differences . . . . . . . . . . . . . . . . . . . . . . 138
Odds Ratio and Relative Risks for 2 x 2 Tables . . . . . . . . . . . 146
Cochran-Armitage Test for Trend . . . . . . . . . . . . . . . . . . 148
Jonckheere-Terpstra Test . . . . . . . . . . . . . . . . . . . . . . . 149
Tests and Measures of Agreement . . . . . . . . . . . . . . . . . . 151
Cochran-Mantel-Haenszel Statistics . . . . . . . . . . . . . . . . . 156
Exact Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Computational Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Output Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Displayed Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
ODS Table Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
ODS Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Examples: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
64 F Chapter 3: The FREQ Procedure
Example 3.1: Output Data Set of Frequencies . . . . . . . . . . . . . . . . 185
Example 3.2: Frequency Dot Plots . . . . . . . . . . . . . . . . . . . . . . 188
Example 3.3: Chi-Square Goodness-of-Fit Tests . . . . . . . . . . . . . . . 191
Example 3.4: Binomial Proportions . . . . . . . . . . . . . . . . . . . . . . 195
Example 3.5: Analysis of a 2x2 Contingency Table . . . . . . . . . . . . . 198
Example 3.6: Output Data Set of Chi-Square Statistics . . . . . . . . . . . . 201
Example 3.7: Cochran-Mantel-Haenszel Statistics . . . . . . . . . . . . . . 203
Example 3.8: Cochran-Armitage Trend Test . . . . . . . . . . . . . . . . . 204
Example 3.9: Friedman’s Chi-Square Test . . . . . . . . . . . . . . . . . . 208
Example 3.10: Cochran’s Q Test . . . . . . . . . . . . . . . . . . . . . . . 210
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
二维码

扫码加我 拉你入群

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

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

2009-10-19 11:56:27
Chapter 2
The CORR Procedure
Contents
Overview: CORR Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Getting Started: CORR Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Syntax: CORR Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
PROC CORR Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
BY Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
FREQ Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
ID Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
PARTIAL Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
VAR Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
WEIGHT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
WITH Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Details: CORR Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Pearson Product-Moment Correlation . . . . . . . . . . . . . . . . . . . . . 17
Spearman Rank-Order Correlation . . . . . . . . . . . . . . . . . . . . . . . 19
Kendall’s Tau-b Correlation Coefficient . . . . . . . . . . . . . . . . . . . . 20
Hoeffding Dependence Coefficient . . . . . . . . . . . . . . . . . . . . . . 21
Partial Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Fisher’s z Transformation . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Cronbach’s Coefficient Alpha . . . . . . . . . . . . . . . . . . . . . . . . . 27
Confidence and Prediction Ellipses . . . . . . . . . . . . . . . . . . . . . . 28
Missing Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Output Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Output Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
ODS Table Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
ODS Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Examples: CORR Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Example 2.1: Computing Four Measures of Association . . . . . . . . . . . 33
Example 2.2: Computing Correlations between Two Sets of Variables . . . . 38
Example 2.3: Analysis Using Fisher’s z Transformation . . . . . . . . . . . 42
Example 2.4: Applications of Fisher’s z Transformation . . . . . . . . . . . 45
Example 2.5: Computing Cronbach’s Coefficient Alpha . . . . . . . . . . . 48
Example 2.6: Saving Correlations in an Output Data Set . . . . . . . . . . . 51
Example 2.7: Creating Scatter Plots . . . . . . . . . . . . . . . . . . . . . . 53
Example 2.8: Computing Partial Correlations . . . . . . . . . . . . . . . . 58
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
二维码

扫码加我 拉你入群

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

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

2009-10-19 11:57:31
Chapter 4
The UNIVARIATE Procedure
Contents
Overview: UNIVARIATE Procedure . . . . . . . . . . . . . . . . . . . . . . . . . 221
Getting Started: UNIVARIATE Procedure . . . . . . . . . . . . . . . . . . . . . . 222
Capabilities of PROC UNIVARIATE . . . . . . . . . . . . . . . . . . . . . 222
Summarizing a Data Distribution . . . . . . . . . . . . . . . . . . . . . . . 223
Exploring a Data Distribution . . . . . . . . . . . . . . . . . . . . . . . . . 224
Modeling a Data Distribution . . . . . . . . . . . . . . . . . . . . . . . . . 227
Syntax: UNIVARIATE Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 231
PROC UNIVARIATE Statement . . . . . . . . . . . . . . . . . . . . . . . . 231
BY Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
CDFPLOT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
CLASS Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
FREQ Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
HISTOGRAM Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
ID Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
INSET Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
OUTPUT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
PPPLOT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
PROBPLOT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
QQPLOT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
VAR Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
WEIGHT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Dictionary of Common Options . . . . . . . . . . . . . . . . . . . . . . . . 315
Details: UNIVARIATE Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Missing Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Descriptive Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Calculating the Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
Calculating Percentiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
Tests for Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
Confidence Limits for Parameters of the Normal Distribution . . . . . . . . 330
Robust Estimators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Creating Line Printer Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
Creating High-Resolution Graphics . . . . . . . . . . . . . . . . . . . . . . 336
Using the CLASS Statement to Create Comparative Plots . . . . . . . . . . 341
220 F Chapter 4: The UNIVARIATE Procedure
Positioning Insets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
Formulas for Fitted Continuous Distributions . . . . . . . . . . . . . . . . . 346
Goodness-of-Fit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
Kernel Density Estimates . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Construction of Quantile-Quantile and Probability Plots . . . . . . . . . . . 360
Interpretation of Quantile-Quantile and Probability Plots . . . . . . . . . . . 361
Distributions for Probability and Q-Q Plots . . . . . . . . . . . . . . . . . . 362
Estimating Shape Parameters Using Q-Q Plots . . . . . . . . . . . . . . . . 366
Estimating Location and Scale Parameters Using Q-Q Plots . . . . . . . . . 366
Estimating Percentiles Using Q-Q Plots . . . . . . . . . . . . . . . . . . . . 367
Input Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
OUT= Output Data Set in the OUTPUT Statement . . . . . . . . . . . . . . 368
OUTHISTOGRAM= Output Data Set . . . . . . . . . . . . . . . . . . . . . 370
OUTKERNEL= Output Data Set . . . . . . . . . . . . . . . . . . . . . . . 371
OUTTABLE= Output Data Set . . . . . . . . . . . . . . . . . . . . . . . . 372
Tables for Summary Statistics . . . . . . . . . . . . . . . . . . . . . . . . . 374
ODS Table Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
ODS Tables for Fitted Distributions . . . . . . . . . . . . . . . . . . . . . . 375
ODS Graphics (Experimental) . . . . . . . . . . . . . . . . . . . . . . . . . 376
Computational Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
Examples: UNIVARIATE Procedure . . . . . . . . . . . . . . . . . . . . . . . . . 378
Example 4.1: Computing Descriptive Statistics for Multiple Variables . . . 378
Example 4.2: Calculating Modes . . . . . . . . . . . . . . . . . . . . . . . 380
Example 4.3: Identifying Extreme Observations and Extreme Values . . . . 382
Example 4.4: Creating a Frequency Table . . . . . . . . . . . . . . . . . . 384
Example 4.5: Creating Plots for Line Printer Output . . . . . . . . . . . . . 385
Example 4.6: Analyzing a Data Set With a FREQ Variable . . . . . . . . . 391
Example 4.7: Saving Summary Statistics in an OUT= Output Data Set . . . 392
Example 4.8: Saving Percentiles in an Output Data Set . . . . . . . . . . . 394
Example 4.9: Computing Confidence Limits for the Mean, Standard Deviation,
and Variance . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
Example 4.10: Computing Confidence Limits for Quantiles and Percentiles . 397
Example 4.11: Computing Robust Estimates . . . . . . . . . . . . . . . . . 399
Example 4.12: Testing for Location . . . . . . . . . . . . . . . . . . . . . . 401
Example 4.13: Performing a Sign Test Using Paired Data . . . . . . . . . . 402
Example 4.14: Creating a Histogram . . . . . . . . . . . . . . . . . . . . . 403
Example 4.15: Creating a One-Way Comparative Histogram . . . . . . . . 405
Example 4.16: Creating a Two-Way Comparative Histogram . . . . . . . . 407
Example 4.17: Adding Insets with Descriptive Statistics . . . . . . . . . . . 409
Example 4.18: Binning a Histogram . . . . . . . . . . . . . . . . . . . . . 412
Example 4.19: Adding a Normal Curve to a Histogram . . . . . . . . . . . 415
Example 4.20: Adding Fitted Normal Curves to a Comparative Histogram . 417
Example 4.21: Fitting a Beta Curve . . . . . . . . . . . . . . . . . . . . . . 419
Example 4.22: Fitting Lognormal, Weibull, and Gamma Curves . . . . . . . 421
Overview: UNIVARIATE Procedure F 221
Example 4.23: Computing Kernel Density Estimates . . . . . . . . . . . . . 426
Example 4.24: Fitting a Three-Parameter Lognormal Curve . . . . . . . . . 427
Example 4.25: Annotating a Folded Normal Curve . . . . . . . . . . . . . . 429
Example 4.26: Creating Lognormal Probability Plots . . . . . . . . . . . . 435
Example 4.27: Creating a Histogram to Display Lognormal Fit . . . . . . . 440
Example 4.28: Creating a Normal Quantile Plot . . . . . . . . . . . . . . . 442
Example 4.29: Adding a Distribution Reference Line . . . . . . . . . . . . 444
Example 4.30: Interpreting a Normal Quantile Plot . . . . . . . . . . . . . 445
Example 4.31: Estimating Three Parameters from Lognormal Quantile Plots 447
Example 4.32: Estimating Percentiles from Lognormal Quantile Plots . . . 452
Example 4.33: Estimating Parameters from Lognormal Quantile Plots . . . 453
Example 4.34: Comparing Weibull Quantile Plots . . . . . . . . . . . . . . 454
Example 4.35: Creating a Cumulative Distribution Plot . . . . . . . . . . . 457
Example 4.36: Creating a P-P Plot . . . . . . . . . . . . . . . . . . . . . . 459
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
二维码

扫码加我 拉你入群

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

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

2009-10-28 00:48:33
Chapter 3
The FREQ Procedure
Contents
Overview: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Getting Started: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Frequency Tables and Statistics . . . . . . . . . . . . . . . . . . . . . . . . 66
Agreement Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Syntax: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
PROC FREQ Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
BY Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
EXACT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
OUTPUT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
TABLES Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
TEST Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
WEIGHT Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Details: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Inputting Frequency Counts . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Grouping with Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Missing Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Statistical Computations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Definitions and Notation . . . . . . . . . . . . . . . . . . . . . . . 116
Chi-Square Tests and Statistics . . . . . . . . . . . . . . . . . . . . 117
Measures of Association . . . . . . . . . . . . . . . . . . . . . . . 122
Binomial Proportion . . . . . . . . . . . . . . . . . . . . . . . . . 131
Risks and Risk Differences . . . . . . . . . . . . . . . . . . . . . . 138
Odds Ratio and Relative Risks for 2 x 2 Tables . . . . . . . . . . . 146
Cochran-Armitage Test for Trend . . . . . . . . . . . . . . . . . . 148
Jonckheere-Terpstra Test . . . . . . . . . . . . . . . . . . . . . . . 149
Tests and Measures of Agreement . . . . . . . . . . . . . . . . . . 151
Cochran-Mantel-Haenszel Statistics . . . . . . . . . . . . . . . . . 156
Exact Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Computational Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Output Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Displayed Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
ODS Table Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
ODS Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Examples: FREQ Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
64 F Chapter 3: The FREQ Procedure
Example 3.1: Output Data Set of Frequencies . . . . . . . . . . . . . . . . 185
Example 3.2: Frequency Dot Plots . . . . . . . . . . . . . . . . . . . . . . 188
Example 3.3: Chi-Square Goodness-of-Fit Tests . . . . . . . . . . . . . . . 191
Example 3.4: Binomial Proportions . . . . . . . . . . . . . . . . . . . . . . 195
Example 3.5: Analysis of a 2x2 Contingency Table . . . . . . . . . . . . . 198
Example 3.6: Output Data Set of Chi-Square Statistics . . . . . . . . . . . . 201
Example 3.7: Cochran-Mantel-Haenszel Statistics . . . . . . . . . . . . . . 203
Example 3.8: Cochran-Armitage Trend Test . . . . . . . . . . . . . . . . . 204
Example 3.9: Friedman’s Chi-Square Test . . . . . . . . . . . . . . . . . . 208
Example 3.10: Cochran’s Q Test . . . . . . . . . . . . . . . . . . . . . . . 210
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
本文来自: 人大经济论坛 详细出处参考:http://www.pinggu.org/bbs/viewth ... &from^^uid=947912
二维码

扫码加我 拉你入群

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

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

2011-3-8 10:50:02
下载不了,提示出错——

文档无法保存,读取文本档时出现问题(26)。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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