sas - How to determine the length of an array? -
if dont know exact length of array after transpose, there way output it? or use it, without manually looking through output data? example, if transpose on number of pills dispensed, number variable each 'id' , want specify array in regression, there way without finding value via manual visual inspection?
proc phreg data=...; array start{*} start1-start????; i=1 ?????; if start{i}<t2event var=1; end; model .........
as corollary if know less say, 100, , specify 100, there consequence? thanks!
the dim() function returns dimensions of array. can use : suffix make variable list of names start same letters.
array start{*} start: ; i=1 dim(start);
Comments
Post a Comment