Prev: Proc SurveyLogistic: ? re: OR vs Max.Likelihood Estimates
Next: about Homogeneity of Odds Ratio P-value
From: Emil on 5 Feb 2010 04:33 let x = 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1 .....6 and so on. thans for help Emil
From: PJ on 5 Feb 2010 08:54 try this. If you want to create 10 times. %let n = 10; %let m = 6; data a(drop=i j); do i = 1 to &n; do j = 1 to &m; x = j; output; end; end; run;
From: Joe Matise on 5 Feb 2010 10:37
Seems easier: %let n = 10; %let m = 6; data a; do _n_ = 1 to &n; do x = 1 to &m; output; end; end; run; -Joe On Fri, Feb 5, 2010 at 7:54 AM, PJ <luxuemei1(a)yahoo.com> wrote: > try this. If you want to create 10 times. > > %let n = 10; > %let m = 6; > > data a(drop=i j); > do i = 1 to &n; > do j = 1 to &m; > x = j; > output; > end; > end; > run; > |