Stata 15 help for _recast

Title

[P] _recast -- Change storage type of variable

Syntax

_recast type varname

Description

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

Remarks

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