x: | 1 | 2 | 3 | 4 |
y: | 1 | 3 | 2 | 4 |
data test; do i = 1 to 100; x = rand("normal"); output; end; proc means n mean std p1 p5 p10 p25 p50 p75 p90 p95 p99;Hint: use this option to force only keyboard characters to be used in the output:
formchar = '|----|+|---+=|-/<>*';Ans: Add this options statement to the top of the SAS script:
options linesize=70 nodate pageno=1 formchar = '|----|+|---+=|-/<>*';Also add the statement
title "";to the data step or proc for which you want to suppress the default title.
ssm = sum((predict(model) - mean(hamster$Lifetime))^2) sse = sum(resid(model)^2) msm = ssm / 1 mse = sse / 134 cat("SSM = ", ssm, " ", "SSE = ", sse, "\n") cat("MSM = ", msm, " ", "MSE = ", mse, "\n") Output: SSM = 3378694 SSE = 8922952 MSM = 3378694 MSE = 66589.19
ssm = sum((predict(model2) - mean(cpu$CpuTime))^2) sse = sum(resid(model2)^2) msm = ssm / 1 mse = sse / 134 cat("SSM = ", ssm, " ", "SSE = ", sse, "\n") cat("MSM = ", msm, " ", "MSE = ", mse, "\n") Output: SSM = 0.5970542 SSE = 0.04067083 MSM = 0.1990181 MSE = 0.001196201
Measures of Influence | |||
Statistic | Symbol | Cutoff | Description |
---|---|---|---|
Externally Studentized Residual | zi* | 2 to 3 | z-score of residual, where the mean and SD are computed with the observation deleted |
Leverage Statistic, or Hat-value | hii | 0.2 to 0.5 or 2p/n |
Diagonal values of the hat matrix H 0 = no influence, 1 = completely determines the model. |
Cook's Distance D | Di | 1 or 4/n | Measures the average effect of deleting the observation. |
DFBETAS Distance | |DFBETASij| | 2 / √n | Change in each β^ when deleting the ith observation. |
DFFITS Distance | |DFFITSij| | 2√p / n | zi*√[hii / (1 - hii)] |
Measures of Multicollinarity | ||
Statistic | Symbol | Cutoff |
---|---|---|
Tolerance | 1 - Rj2 | < 0.2 |
Variance Inflation Factor | VIF = 1 / (1 - Rj2) | > 5.0 |