{smcl} {* 21jan2004}{...} {hline} help for {hi:zscore} {hline} {title:Create new variable(s) containing standardized z-scores} {p 8 14}{cmd:zscore} {it:varlist} [{it:weights}] [{cmd:if}] [{cmd:in}] [{cmd:, stub(}{it:stubname}{cmd:)} ] {p 4 4 2} {cmd:aweight}s, {cmd:fweight}s, and {cmd:iweight}s are allowed; see help {help weights}. {title:Description} {p}{cmd:zscore} will create a new variable or variables, depending on {it:varlist}, that contains the standardized z-scores. {title:Options} {p 0 4}{cmd:stub(}{it:stubname}{cmd:)} specifies the prefix that will be given to the new variable(s). If {cmd:stub()} is not specified, the default {it:stubname} is "z_". {title:Author} {p 8}Shannon Driver, Stata Corporation{p_end} {p 8}srd@stata.com{p_end} {title:Examples} {p 8 12}{inp:. zscore price} {p 8 12}{inp:. zscore price weight mpg} {p 8 12}{inp:. zscore price weight mpg if mpg > 20} {p 8 12}{inp:. zscore price weight mpg in 5/20} {p 8 12}{inp:. zscore price weight mpg, stub(zscore_)} {p 8 12}{inp:. zscore price weight mpg if mpg > 20 in 5/20, stub(zscore_)} {title:Also see} {p 0 19}On-line: help for {help generate}, {help summarize}{p_end}