Stata 15 help for _recast


[P] _recast -- Change storage type of variable


_recast type varname


_recast changes the storage type of the variable to the specified storage type.


Coding _recast type varname

does the same as

recast type varname, force

_recast is faster than recast.

_recast performs the requested change in storage type even if that results in rounding or truncation.

_recast produces no output.

With _recast, the only errors possible are that varname is not found, that type is invalid, or that type and varname result in a type mismatch.

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index