Hi Fellow Listers,

I am trying to generate a sequence of values based on a numlist from 1 to X in a non-integer increment such as 1(0.0001)10.

The code below does this okay, but I am not sure if there is a better approach to setting the observations (here I arbitrarily set obs to 100000).

Any help would be much appreciated!


qui {
set obs 100000
local cnt = 1
gen test =.
forval i = 1(0.0001)10 {
replace test = `i' in `cnt'
local cnt = `cnt' + 1
}
}

Ariel