[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Kristian Karlson" <kristian.karlson@gmail.com> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: SV: Create categorical variable based on 'z-score' |

Date |
Wed, 26 Nov 2008 17:17:04 +0100 |

Shannon Driver has developed the following ado-file: zscore. You can get it from the command window by typing: net install zscore. It does the z-transformation for you. After the transformation, you can use the recode command. /Kristian -----Oprindelig meddelelse----- Fra: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] På vegne af George Hoffman Sendt: 26. november 2008 17:06 Til: statalist@hsphsun2.harvard.edu Emne: st: Create categorical variable based on 'z-score' Generic problem: I'd like to create categorical variables for a list of continuous variables. The categorical variables would be based upon the z-score of each variable, such as: Z-score of X catX <-2 -3 -2 ..-1 -2 -1 .. 0 -1 0 0 0.. +1 +1 1 ..2 +2 >+2 +3 If there were a way to z-transform variables, I could do an easy recode(catX) Thanks! George hoffman * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Create categorical variable based on 'z-score'***From:*George Hoffman <ghoffman@mcw.edu>

- Prev by Date:
**st: RE: Create categorical variable based on 'z-score'** - Next by Date:
**SV: st: GLAMM and nested logit/probit** - Previous by thread:
**st: RE: Create categorical variable based on 'z-score'** - Next by thread:
**st: RE: Create categorical variable based on 'z-score'** - Index(es):

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