PDF4PRO ⚡AMP

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

Example: barber

Creating new variables - Stata

11 Creating new variablesgenerate and replaceThis chapter shows the basics of Creating and modifying variables in Stata . We saw how to workwith the Data Editor in[GSW] 6 Using the Data Editor this chapter shows how we would do thisfrom the Command window. The two primary commands used for this are generatefor Creating new variables . It has a minimum abbreviation ofg. replacefor replacing the values of an existing variable. It may not be abbreviated because italters existing data and hence can be considered most basic form for Creating new variables isgeneratenewvar=exp, whereexpis any kindofexpression.

3. Chev. Monza D Monza Monza D 4. D D 5. Datsun 510 F 510 510 F 6. Buick Regal D Regal Regal D 7. Datsun 810 F 810 810 F There are a few things to note about how these commands work: 1. strpos(s 1,s 2) produces an integer equal to the first position in the string s 1 at which the string s 2 is found or 0 if it is not found. In this example ...

Loading..

Tags:

  Monza, Monza monza

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 Creating new variables - Stata

Related search queries