Hi all! I use to copy every single data from a result output into word tables for scientific publications, but this is actually time consuming. I wonder if there is a faster procedure. I attach a sample datastep for your help. data graze;
length GrazeType $ 10;
input GrazeType $ WtGain @@;
datalines;
controlled 45 controlled 62
controlled 96 controlled 128
controlled 120 controlled 99
controlled 28 controlled 50
controlled 109 controlled 115
controlled 39 controlled 96
controlled 87 controlled 100
controlled 76 controlled 80
continuous 94 continuous 12
continuous 26 continuous 89
continuous 88 continuous 96
continuous 85 continuous 130
continuous 75 continuous 54
continuous 112 continuous 69
continuous 104 continuous 95
continuous 53 continuous 21
; then perform ttest proc ttest data=graze;
class GrazeType;
var WtGain;
run; and obtain this results Here I come to my point: is there a way to automatically obtain the following output from the above results? Variables Group1 Group2 p-value WtGain 75.2+/-33.8 83.1+/-30.5 0.49 Similarly for proc freq, obviously as count (%)
... View more