11.07.2015 Views

[U] User's Guide

[U] User's Guide

[U] User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

13 Functions and expressionsContents13.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14313.2 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14413.2.1 Arithmetic operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14413.2.2 String operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14413.2.3 Relational operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14513.2.4 Logical operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14613.2.5 Order of evaluation, all operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14713.3 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14713.4 System variables ( variables) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14813.5 Accessing coefficients and standard errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14813.5.1 Single-equation models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14913.5.2 Multiple-equation models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14913.5.3 Factor variables and time-series operators . . . . . . . . . . . . . . . . . . . . . . . . . . . 15013.6 Accessing results from Stata commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15113.7 Explicit subscripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15213.7.1 Generating lags and leads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15213.7.2 Subscripting within groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15313.8 Indicator values for levels of factor variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15613.9 Time-series operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15613.9.1 Generating lags, leads, and differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15613.9.2 Time-series operators and factor variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 15713.9.3 Operators within groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15713.10 Label values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15813.11 Precision and problems therein . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15913.12 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160If you have not read [U] 11 Language syntax, please do so before reading this entry.13.1 OverviewExamples of expressions include2+2miles/gallonsmyv+2/oth(myv+2)/othln(income)age50000age50000age==25name=="M Brown"fname + " " + lnamesubstr(name,1,10)val[ n-1]L.gnp143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!