The name is absent



Stata Technical Bulletin

Example

The following example shows the use of a few of the commands on a short artificial data set.

. list

m

У

1.

2

1992

2.

2

1994

3.

4

1994

4.

7

1994

ε.

12

1994

. Iastbday m y, generate (Ibday)
. list

m

У

Ibday

1.

2

1992

28

2.

2

1994

28

3.

4

1994

29

4.

7

1994

29

ε.

12

1994

30

mdytodow m Ibday у.

, gen(dow)

list

m

У

Ibday

do w

1.

2

1992

28

Fri.

2.

2

1994

28

Mon.

3.

4

1994

29

Fri.

4.

7

1994

29

Fri.

ε.

12

1994

30

Fri.

list,

nolabel

m

У

Ibday

do w

1.

2

1992

28

ε

2.

2

1994

28

1

3.

4

1994

29

ε

4.

7

1994

29

ε

ε.

12

1994

30

ε

. describe

Contains data

Obs :

ε

(max=

8088)

Vars :

4

(max=

99)

Width:

12

(max=

200)

1. m

float '∕09.Og

2. y

float

7.9.0g

3. Ibday

int

7.8.0g

4. do w

int

7.8.0g

Dayslab

Sorted by:

Note that the new variable dow is an integer, but has been given the label Dayslab.

Each of these date commands may also be used in immediate form. To use the command in immediate form, simply type
the name of the command along with the numbers or strings for the day, month, or year you want converted. The command
will display its results to the screen as well as saving them in the global macros S_l-S_4.

Example

. lastday 2 1992
29

Saturday, February 29, 1992

. disp_s

S_l:       29

S_2:       Saturday

S_3:        Sat

S_4:       Sat.

. today

July 1, 1994



More intriguing information

1. Lending to Agribusinesses in Zambia
2. Passing the burden: corporate tax incidence in open economies
3. Accurate and robust image superresolution by neural processing of local image representations
4. The Impact of Hosting a Major Sport Event on the South African Economy
5. Innovation and business performance - a provisional multi-regional analysis
6. Agricultural Policy as a Social Engineering Tool
7. CONSUMER ACCEPTANCE OF GENETICALLY MODIFIED FOODS
8. Who’s afraid of critical race theory in education? a reply to Mike Cole’s ‘The color-line and the class struggle’
9. Conservation Payments, Liquidity Constraints and Off-Farm Labor: Impact of the Grain for Green Program on Rural Households in China
10. ISSUES AND PROBLEMS OF IMMEDIATE CONCERN
11. An institutional analysis of sasi laut in Maluku, Indonesia
12. AN ECONOMIC EVALUATION OF COTTON AND PEANUT RESEARCH IN SOUTHEASTERN UNITED STATES
13. The name is absent
14. Problems of operationalizing the concept of a cost-of-living index
15. Co-ordinating European sectoral policies against the background of European Spatial Development
16. Spatial agglomeration and business groups: new evidence from Italian industrial districts
17. Nach der Einführung von Arbeitslosengeld II: deutlich mehr Verlierer als Gewinner unter den Hilfeempfängern
18. Cross-Country Evidence on the Link between the Level of Infrastructure and Capital Inflows
19. Recognizability of Individual Creative Style Within and Across Domains: Preliminary Studies
20. Special and Differential Treatment in the WTO Agricultural Negotiations