[R] Importint stata file and using value labels
Juan Ceccarelli Arias
jfca283 at gmail.com
Thu Aug 25 18:02:54 CEST 2016
Nop. I didn't work. But using the following it does work.
When i use the dta file with stata i declare the condition with sex==1 and
On Thu, Aug 25, 2016 at 12:39 PM, <ruipbarradas at sapo.pt> wrote:
> Try instead
> To test for equality use == not =.
> Hope this helps,
> Rui Barradas
> Citando Juan Ceccarelli Arias <jfca283 at gmail.com>:
> Im a bit lost.
> Ive imported a stata13 file. When i try to make a simple
> i get something as
> type1 type2
> region1 0 0
> region2 0 0
> region3 0 0
> I don't know how to operate with the value labels.
> Sex is defined as 1 as "Man" and 2 as "Female".
> And region1 is 1, region2 is 2 and so on.
> So, how can i make reference to the value and not the value labels when i
> write down some condition or statement ?
> I know is simple, but using the help for readstata13 didn't clarify it to
> Thanks for your help and time.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.htmland provide commented, minimal, self-contained,
> reproducible code.
[[alternative HTML version deleted]]
More information about the R-help