Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bootsvar and Permvar not found

    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!



  • #2
    You must create these variables yourself. Or, if the variable you want to push through this code has a different name, use that instead.

    Comment

    Working...
    X