PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: bachelor of science

Extensions to generate - Stata

Extensions to generateDescriptionQuick startMenuSyntaxRemarks and examplesAcknowledgmentsReferencesAlso seeDescriptionegencreates a new variable of the optionally specified storage type equal to the given functionbased on arguments of that function. The functions are specifically written foregen, as documentedbelow or as written by startGeneratenewv1for distinct groups ofv1andv2, and create and apply value labelmylabelegen newv1 = group(v1 v2), label(mylabel)Generatenewv2equal to the minimum ofv1,v2, andv3for each observationegen newv2 = rowmin(v1 v2 v3)Generatenewv3equal to the overall sum ofv1egen newv3 = total(v1)As above, but calculate total within each level ofcatvaregen newv3 = total(v1), by(catvar)Generatenewv4equal to the number of nonmissing numeric values acrossv1,v2, andv3for eachobservationegen newv4 = rownonmiss(v1 v2 v3)As above, but allow string valuesegen newv4 = rownonmiss(v1 v2 v3)

Generate newv4 equal to the number of nonmissing numeric values across v1, v2, and v3 for each observation egen newv4 = rownonmiss(v1 v2 v3) As above, but allow string values egen newv4 = rownonmiss(v1 v2 v3), strok Generate newv5 as the concatenation of numeric v1 and string v4 separated by a space egen newv5 = concat(v1 v4), punct(" ") Menu

Tags:

  Value, Separated

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Extensions to generate - Stata

Related search queries