Skip to content

Commit 9023860

Browse files
committed
added for earlier time period
1 parent b20f940 commit 9023860

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/************************************************************************************/
2+
/* Research Question: Full-time and Part-time Employment for 4-digit NAICS */
3+
/************************************************************************************/
4+
5+
DATA work.ftptemp4digNAICS;
6+
SET RTRAdata.LFS201620 (keep = ID PROV AGE LFSSTAT FTPTMAIN NAICS_5 SYEAR SMTH);
7+
8+
/* Province B.C.*/
9+
if PROV = 59;
10+
11+
/* Age 15 or over */
12+
if AGE >= 15;
13+
14+
/* Labour Force Status: In the labour force*/
15+
16+
if LFSSTAT IN (1,2);
17+
18+
/* Part-time and Full-time status */
19+
20+
if ftptmain = '1' then ftpt = 'Full-time';
21+
else if ftptmain = '2' then ftpt = 'Part-time';
22+
else ftpt = 'Unknown';
23+
24+
run;
25+
26+
%RTRAFreq(
27+
InputDataset=work.ftptemp4digNAICS,
28+
OutputName=ftptemp1620,
29+
ClassVarList= SYEAR SMTH ftpt NAICS_5,
30+
UserWeight=FINALWT);
31+
run;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*************************************************************************/
2+
/* Research Question: Labour Force Statistics for 4-digit NAICS */
3+
/*************************************************************************/
4+
5+
DATA work.lfstats4digNAICS;
6+
SET RTRAdata.LFS201620 (keep = ID PROV AGE LFSSTAT NAICS_5 SYEAR SMTH);
7+
8+
/* Province B.C.*/
9+
if PROV = 59;
10+
11+
/* Age 15 or over */
12+
if AGE >= 15;
13+
14+
/*Labour Force Status*/
15+
16+
length lf_stat $20;
17+
18+
if LFSSTAT IN (1,2) then lf_stat = 'Employed';
19+
else if LFSSTAT in (3,4,5) then lf_stat = 'Unemployed';
20+
else lf_stat = 'Unknown';
21+
22+
/*only non-missing naics*/
23+
if NAICS_5 = ' ' then delete;
24+
25+
run;
26+
27+
%RTRAFreq(
28+
InputDataset=work.lfstats4digNAICS,
29+
OutputName=lfsstat1620,
30+
ClassVarList= SYEAR SMTH lf_stat NAICS_5,
31+
UserWeight=FINALWT);
32+
run;

0 commit comments

Comments
 (0)