Creating a grouping variable for data sets ------------------------------------------ by Marc Jacobs, Univ of Utrecht, The Netherlands, FAX: (011)31-30-534405 ^bv^ and ^bvs^ create vectors that run from 1 to k, n times. Programs like GLIM (Generalized Linear Interactive Modelling) or ML3 (Multilevel analysis) make use of those vectors. ^bv.ado^, creates a vector, with total length _N, consisting of blocks running from 1 to k, as many times as is possible. ^bvs.ado^, constructs a vector, length _N, consisting of blocks of 1, 2, ... n. Results would be like this: ^. BV n 5^ ^. BVS s 5^ n s 1 1 2 1 3 1 4 1 5 1 1 2 2 2 3 2 4 2 5 2 . . . . n n