Hi!
I've been trying to implement some permutations on a toy data set, using https://journals.sagepub.com/doi/pdf...867X1101000410 (Stata tip 92), and whenever I run this code:
generate id=_n
generate double u=runiform()
sort u
local type: type permvar
generate `type´ upermvar=permvar[id]
the error "permvar not found" appears.
Likewise, whenever I try to run this code:
generate u=ceil(runiform()*_N)
generate ubootsvar=bootsvar[u]
the error 'bootsvar not found' apperas.
Does anyone know how can I fix this problem? I've been looking at forums and I haven't seen any posts related to this problem.
Thank you!
I've been trying to implement some permutations on a toy data set, using https://journals.sagepub.com/doi/pdf...867X1101000410 (Stata tip 92), and whenever I run this code:
generate id=_n
generate double u=runiform()
sort u
local type: type permvar
generate `type´ upermvar=permvar[id]
the error "permvar not found" appears.
Likewise, whenever I try to run this code:
generate u=ceil(runiform()*_N)
generate ubootsvar=bootsvar[u]
the error 'bootsvar not found' apperas.
Does anyone know how can I fix this problem? I've been looking at forums and I haven't seen any posts related to this problem.
Thank you!

Comment