Transcription of Title stata.com egen — Extensions to generate
{{id}} {{{paragraph}}}
Extensions to generateSyntaxMenuDescriptionRemarks and examplesMethods and formulasAcknowledgmentsReferencesAlso seeSyntaxegen[type]newvar=fcn(arguments) [if][in][,options]byis allowed with some of theegenfunctions, as noted depending on thefcn,argumentsrefers to an expression,varlist, ornumlist, and theoptionsare alsofcndependent, and wherefcnisanycount(varlist), values(integer numlist)may not be combined withby. It returns the number of variables invarlistfor which values areequal to any integer value in a suppliednumlist. Values for any observations excluded by eitheriforinare set to 0 (not missing). Also seeanyvalue(varname)andanymatch(varlist) .anymatch(varlist), values(integer numlist)may not be combined withby. It is 1 if any variable invarlistis equal to any integer value ina suppliednumlistand 0 otherwise. Values for any observations excluded by eitheriforinare set to 0 (not missing).
50 is assumed, meaning medians. Also see median(). rank(exp), fieldjtrackjunique (allows by varlist:) creates ranks (within varlist) of exp; by default, equal observations are assigned the average rank. The field option calculates the field rank of exp: the highest value is ranked 1, and there is no correction for ties.
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}