/*****************************************************************************************/
/*
*/
/* Macro name: %RESAMP
*/
/*
*/
/* Purpose: Sampling With Replacement:
Using a 'population' sample, generate sets of */
/* resampled data from the
population. */
/*
*/
/* Call
Statement:
*/
/*
*/
/* %RESAMP (INP=,OUTP=,SS=,DS=,SEED=);
*/
/*
*/
/* REQUIRED parameters:
none */
/*
*/
/* OPTIONAL
parameters:
*/
/*
*/
/* INP= input SAS dataset containing
the 'population' sample data. If a SAS */
/* dataset is not specified, the
most recently created SAS dataset (_LAST_) */
/* is used as input to the
macro. */
/*
*/
/* OUTP= SAS dataset name for the
output SAS dataset. If a SAS dataset is not */
/* specified, the output SAS dataset
default is _RESAMP1_. */
/*
*/
/* SS= Sample size to generate for
each resampled data set. */
/* Default is 200 per grp.
*/
/*
*/
/* DS= Number of resampled data sets
to generate. Default is 100 sets. */
/*
*/
/* SEED= Seed used to initiated
stream of random numbers for selection of */
/* observations. Must be an integer
< 2**31-1. If seed is <=0 then the */
/* clock time is used to initiate.
Default is 248531. */
/*
*/
/* Printed output:
none
*/
/*
*/
/* Output SAS
dataset:
*/
/*
*/
/* name specified
by:
*/
/* OUTP= (unspecified, then
_RESAMP1_) */
/*
variables:
*/
/* all variables from input SAS
dataset */
/* _SET_ data set identifier, ranges
from 1 to DS */
/* _ID_ number of the record within
the set. */
/*
*/
/*****************************************************************************************/