Skip to Main Content
Statistical Programming in SAS
book

Statistical Programming in SAS

by John Bailer
April 2015
Intermediate to advanced content levelIntermediate to advanced
460 pages
14h 45m
English
SAS Institute
Content preview from Statistical Programming in SAS
336 Statistical Programming in SAS
Display 9.5 (continued)
/* STEP 6: Calculate the Monte Carlo p-value */
MC_P_value_Cluster = numle/nsim;
* write results to log file with PUT statements;
put "MC P-value (Clustering) = " MC_P_value_Cluster;
put "(based on " nsim " simulated plots)";
run;
Executing this code writes the results to the log file. Here are the results:
MC P-value (Clustering) = 0.006
(based on 4000 simulated plots)
The p-value for a test of clustering is estimated to be 0.006 from a Monte Carlo
simulation assuming a null hypothesis of CSR observations.
9.3 Remembering Variable Values across Observations
It is usually straig ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781607645047