You are on page 1of 5

PRAKTIKUM 1

ANALISIS PERSON TIME

log:

D:\SEMESTER 3\AAEL 2\PRATIKUM\Person time year\person_time.log

log type:
opened on:

No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

text
20 Sep 2016, 12:55:15

Command
Describe
List
Gen brthday= date(bdate, “mdy”)
list
Gen rdate= mdy(rmonth, rday,
ryear)
List
Format brtday rdate %d
List
Gen selisih= rdate-brtday
List
Gen age= selisih/365
List
Format brtday rdate %8,2g
List
Format brtday rdate %d
list

1. Describe
Contains data from person_time.dta
obs:
10
vars:
4
20 Sep 2016 12:53
size:
270 (99.9% of memory free)
----------------------------------------------------------------storage display
value
variable name
type
format
label
variable label
----------------------------------------------------------------bdate
str17 %17s
rmonth
int
%8.0g
rday
int
%8.0g
ryear
int
%8.0g

2. List
+-------------------------------------------+

1. list +------------------------------------------------------------+ | bdate rmonth rday ryear brtday rdate | |------------------------------------------------------------| | 7-11-1948 12 13 1990 -4191 11304 | | 1/21/1952 9 4 1993 -2902 12300 | | Aug 12. 1957 7 12 1990 -746 11150 | | January 1 1960 5 8 1992 0 11816 | | 1/15/2005 4 24 1996 16451 13263 | | 5/20/1986 9 10 2016 9636 20707 | +------------------------------------------------------------+ . | 1/21/1952 9 4 1993 -2902 | 3. gen brtday= date(bdate. 9. | bdate rmonth rday ryear | |-------------------------------------------| | 7-11-1948 12 13 1990 | | 1/21/1952 9 4 1993 | | Aug 12. rday. 3. 4. 10. | 8/24/1988 11 9 1994 10463 | |----------------------------------------------------| 6. 1963 3 26 1995 | | Nov 2 1974 6 15 1989 | | 8/24/1988 11 9 1994 | |-------------------------------------------| | 11-15-1990 4 30 1991 | | DEcember 16. 5. 2. | 5/20/1986 9 10 2016 9636 | +----------------------------------------------------+ 5. 6. 1957 7 12 1990 -746 | 8. 1963 3 26 1995 1319 | 4. 1963 3 26 1995 1319 12868 | | Nov 2 1974 6 15 1989 5419 10758 | | 8/24/1988 11 9 1994 10463 12731 | |------------------------------------------------------------| | 11-15-1990 4 30 1991 11276 11442 | | DEcember 16. ryear) 6. | Aug 12. | 1/15/2005 4 24 1996 16451 | 10. 8. | Nov 2 1974 6 15 1989 5419 | 5."mdy") 4. | 11-15-1990 4 30 1991 11276 | 7. 7. | January 1 1960 5 8 1992 0 | 9. | DEcember 16. | 7-11-1948 12 13 1990 -4191 | 2. 1957 7 12 1990 | | January 1 1960 5 8 1992 | | 1/15/2005 4 24 1996 | | 5/20/1986 9 10 2016 | +-------------------------------------------+ 3. list +----------------------------------------------------+ | bdate rmonth rday ryear brtday | |----------------------------------------------------| 1. gen rdate=mdy(rmonth.

| 1/15/2005 4 24 1996 15jan2005 24apr1996 -3188 | 10. 1963 3 26 1995 12aug1963 26mar1995 | 4. | 7-11-1948 12 13 1990 11jul1948 13dec1990 15495 | 2. | 5/20/1986 9 10 2016 20may1986 10sep2016 | +-------------------------------------------------------------------+ 9. | Aug 12. | Aug 12. gen selisih=rdate-brtday 10. | 1/21/1952 9 4 1993 21jan1952 04sep1993 15202 | 3. list +-----------------------------------------------------------------------------+ | bdate rmonth rday ryear brtday rdate selisih | |-----------------------------------------------------------------------------| 1. gen age= selisih/365 12. | DEcember 16. | Nov 2 1974 6 15 1989 02nov1974 15jun1989 5339 | 5. list +-----------------------------------------------------------------------------------------+ . list +-------------------------------------------------------------------+ | bdate rmonth rday ryear brtday rdate | |-------------------------------------------------------------------| 1. 1957 7 12 1990 16dec1957 12jul1990 11896 | 8. | 8/24/1988 11 9 1994 24aug1988 09nov1994 | |-------------------------------------------------------------------| 6.7. 1963 3 26 1995 12aug1963 26mar1995 11549 | 4. | 7-11-1948 12 13 1990 11jul1948 13dec1990 | 2. | 1/15/2005 4 24 1996 15jan2005 24apr1996 | 10. 1957 7 12 1990 16dec1957 12jul1990 | 8. | 8/24/1988 11 9 1994 24aug1988 09nov1994 2268 | |-----------------------------------------------------------------------------| 6. | 5/20/1986 9 10 2016 20may1986 10sep2016 11071 | +-----------------------------------------------------------------------------+ 11. | 1/21/1952 9 4 1993 21jan1952 04sep1993 | 3. format brtday rdate %d 8. | 11-15-1990 4 30 1991 15nov1990 30apr1991 | 7. | January 1 1960 5 8 1992 01jan1960 08may1992 11816 | 9. | Nov 2 1974 6 15 1989 02nov1974 15jun1989 | 5. | DEcember 16. | 11-15-1990 4 30 1991 15nov1990 30apr1991 166 | 7. | January 1 1960 5 8 1992 01jan1960 08may1992 | 9.

| Aug 12. format brtday rdate %d 16.6411 | | Nov 2 1974 6 15 1989 02nov1974 15jun1989 5339 14. 1957 7 12 1990 16dec1957 12jul1990 11896 32.6274 | | 8/24/1988 11 9 1994 24aug1988 09nov1994 2268 6.64931 | 3. | 7-11-1948 12 13 1990 11jul1948 13dec1990 15495 42. | 11-15-1990 4 30 1991 11276 11442 166 . 5.59178 | 8. 1963 3 26 1995 12aug1963 26mar1995 11549 31.6411 | 4. 9. 3. 8.1. | bdate rmonth rday ryear brtday rdate selisih age | |-----------------------------------------------------------------------------------------| | 7-11-1948 12 13 1990 11jul1948 13dec1990 15495 42.45205 | 2. 2. 6. 1963 3 26 1995 1319 12868 11549 31.64931 | | Aug 12.4547945 | | DEcember 16. 4. list +-----------------------------------------------------------------------------------------+ | bdate rmonth rday ryear brtday rdate selisih age | |-----------------------------------------------------------------------------------------| 1. | January 1 1960 5 8 1992 0 11816 11816 32. format brtday rdate %8.3726 | | 1/15/2005 4 24 1996 15jan2005 24apr1996 -3188 -8.213699 | |-----------------------------------------------------------------------------------------| | 11-15-1990 4 30 1991 15nov1990 30apr1991 166 . | 1/15/2005 4 24 1996 16451 13263 -3188 -8.3726 | 9. | Nov 2 1974 6 15 1989 5419 10758 5339 14.6274 | 5.33151 | +----------------------------------------------------------------------------------+ 15. | 1/21/1952 9 4 1993 -2902 12300 15202 41. | 5/20/1986 9 10 2016 9636 20707 11071 30.4547945 | 7.59178 | | January 1 1960 5 8 1992 01jan1960 08may1992 11816 32.2g 14. | 8/24/1988 11 9 1994 10463 12731 2268 6. list +----------------------------------------------------------------------------------+ | bdate rmonth rday ryear brtday rdate selisih age | |----------------------------------------------------------------------------------| 1. 10. | DEcember 16.734246 | 10. 7. | 7-11-1948 12 13 1990 -4191 11304 15495 42.45205 | .734246 | | 5/20/1986 9 10 2016 20may1986 10sep2016 11071 30.45205 | | 1/21/1952 9 4 1993 21jan1952 04sep1993 15202 41.33151 | +-----------------------------------------------------------------------------------------+ 13.213699 | |----------------------------------------------------------------------------------| 6. 1957 7 12 1990 -746 11150 11896 32.

6274 | | 8/24/1988 11 9 1994 24aug1988 09nov1994 2268 6.4547945 | | DEcember 16. 1957 7 12 1990 16dec1957 12jul1990 11896 32.64931 | | Aug 12.3726 | | 1/15/2005 4 24 1996 15jan2005 24apr1996 -3188 -8. 8.734246 | | 5/20/1986 9 10 2016 20may1986 10sep2016 11071 30.59178 | | January 1 1960 5 8 1992 01jan1960 08may1992 11816 32. 9. 4.33151 | +-----------------------------------------------------------------------------------------+ .2. | 1/21/1952 9 4 1993 21jan1952 04sep1993 15202 41. 3. 5. 6. 10.213699 | |-----------------------------------------------------------------------------------------| | 11-15-1990 4 30 1991 15nov1990 30apr1991 166 . 1963 3 26 1995 12aug1963 26mar1995 11549 31. 7.6411 | | Nov 2 1974 6 15 1989 02nov1974 15jun1989 5339 14.