I would like to know how I can use
Code: Select all
dofor Code: Select all
smpl Code: Select all
dofor i = x1 x2 x3; stats(smpl=i) y; enddofor i Code: Select all
dofor Code: Select all
smpl Code: Select all
dofor i = x1 x2 x3; stats(smpl=i) y; enddofor i Usefan wrote:Hi Tom,
I would like to know how I can useandCode: Select all
dofortogether. I triedCode: Select all
smplbut it did not work. It only gives result for i = x1. Do I need to use special instructions here? Many ThanksCode: Select all
dofor i = x1 x2 x3; stats(smpl=i) y; enddofor i
Thank you for the quick replyTomDoan wrote:Usefan wrote:Hi Tom,
I would like to know how I can useandCode: Select all
dofortogether. I triedCode: Select all
smplbut it did not work. It only gives result for i = x1. Do I need to use special instructions here? Many ThanksCode: Select all
dofor i = x1 x2 x3; stats(smpl=i) y; enddofor i
stats(smpl=i{0}) y
The right side of SMPL (and some other options such as WEIGHT and SPREAD) is a formula, so you need I{0} to make sure it's evaluated as an element of a series.