Transcription of Extensions to generate - Stata
{{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 of numeric variables are converted to string, as is, or ... punct(" "), or a comma, punct(,). count(exp) (allows by varlist:) creates a constant (within varlist) containing the number of nonmissing observations of exp. Also see rownonmiss() and rowmiss(). ... may be simply a list of numbers separated by commas but can also include the ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}