I want to keep variables when they start from SUM_*. Could you advise?
You can use the colon modifier to do this. I have include sample code below.
data sums;
set these2;
keep subgroup
sum_:;
run;
I want to keep variables when they start from SUM_*. Could you advise?
You can use the colon modifier to do this. I have include sample code below.
data sums;
set these2;
keep subgroup
sum_:;
run;
=IF(ABS($G3)<0.001,"***",IF(ABS($G3)<0.01,"**",IF(ABS($G3)<0.05,"*",IF(ABS($G3)<0.1,"",IF(ABS($G3)>=0.1,"")))))
data indiv4;
set indiv3;
if N_entry > 9;
run;
proc sort;by subgroup;
run;
data indiv5;
retain sequence;
set indiv4;
by subgroup;
if first.subgroup then sequence=0;
sequence=sequence+1;
run;
http://www.albany.edu/~msz03/epi514/notes/first_last.pdf
data indiv4;
set indiv3;
if N_entry > 9;
run;
proc sort;by subgroup;
run;
data indiv5;
set indiv4;
by subgroup;
first_id=first.subgroup;
last_id=last.subgroup;
run;
Variance Almanac
https://arc.uchicago.edu/reese/variance-almanac-academic-achievement
Hedges and Hedberg (2007) paper:
http://jrre.vmhost.psu.edu/wp-content/uploads/2014/02/22-10.pdf
when a SAS syntax generates errors involving macro's, SAS stops doing anything even if you submit a new command. You can submit the following to clean-quit without shutting down SAS.
;*%mend;*);*';*";**/;
proc datasets library = work kill nolist;
quit;