-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpcn_load.sthlp
208 lines (154 loc) · 7.74 KB
/
pcn_load.sthlp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{smcl}
{* *! version 1.0.0 8jan2020}{...}
{cmd:help pcn}{right: WB:PovcalNet Team}{* {right: ({browse "some link":SJ: ???})}}
{hline}
{vieweralsosee "" "--"}{...}
{vieweralsosee "Install wbopendata" "ssc install wbopendata"}{...}
{vieweralsosee "Help wbopendata (if installed)" "help wbopendata"}{...}
{viewerjumpto "Command description" "pcn_full##desc"}{...}
{viewerjumpto "Parameters description" "pcn_full##param"}{...}
{viewerjumpto "Options description" "pcn_full##options"}{...}
{viewerjumpto "Subcommands" "pcn_full##subcommands"}{...}
{viewerjumpto "Stored results" "pcn_full##return"}{...}
{viewerjumpto "Examples" "pcn_full##Examples"}{...}
{viewerjumpto "Disclaimer" "pcn_full##disclaimer"}{...}
{viewerjumpto "How to cite" "pcn_full##howtocite"}{...}
{viewerjumpto "References" "pcn_full##references"}{...}
{viewerjumpto "Acknowledgements" "pcn_full##acknowled"}{...}
{viewerjumpto "Authors" "pcn_full##authors"}{...}
{viewerjumpto "Regions" "pcn_countries##regions"}{...}
{viewerjumpto "Countries" "pcn_countries##countries"}{...}
{center:{cmd:pcn} {hline 2} Stata package to manage {ul:{it:PovcalNet}} files and folders.}
{center:{bf:pcn load}}
{hline}
{center:({help pcn:Go back to Intro page})}
{p2colset 5 30 29 2}{...}
{p 4 4 2}
The {cmd:load} subcommand loads the PovcalNet data into memory (this requires access to the P drive).
In overall terms, the command checks the conditions given by the user, chiefly
{opt countries} and {opt year}, and loads the existing data that satisfies the user's request,
or deploys a list with the surveys in stock that meets the conditions. If additional
conditions, such as {opt type} or {opt version} options, are listed then the search is refined.
{p_end}
{p 4 4 2}
Four different kinds of data can be loaded, accordingly to the chosen companion word:{p_end}
{hline 73}
Subcommand + Companion{col 45}Action
{hline 25}{col 45}{hline 45}
load [gpwg] {col 45}loads the GPWG surveys (approved).
load wrk {col 45}loads the working data (Not yet approved).
load cpi {col 45}loads the CPI data (datalibweb's).
load [pf|rice] {col 45}loads the price framework data (datalibweb's).
{hline 73}
{p 4 4 2}
Options and overall structure changes according to the companion word, please keep in mind the following:{p_end}
{hline 87}
Companion{col 25}Basic recommended structure
{hline 15}{col 25}{hline 67}
gpwg {col 20}{cmd:pcn load [gpwg]}, {opt countr(3-letter code)} {opt year(####)} [{opt veralt(##)} {opt vermast(##)}]
wrk {col 20}{cmd:pcn laod wrk}, {opt countr(3-letter code)} {opt year(####)}
cpi {col 20}{cmd:pcn load cpi} [, {opt version( date |"choose"|"pick")} ]
{hline 87}
{p 4 4 2}
The different options and parameters may be described:
{col 5}Option{col 30}Description
{space 4}{hline}
{p2col:{opt country:}(3-letter code)}List of country codes (accepts multiples) [{it:all} is not accepted]{p_end}
{p2col:{opt years:}(numlist|string)}Four-digit year [all is not accepted] {p_end}
{p2col:{opt version:}}If set a particular version of the file will be used on basis
of the date given by the user. If unsure of the date, by writing "choose" or "pick", a list of the versions available will be lunch and the user may select the one to use
trought a clickcable menu. If not set the latest version is used.{p_end}
{p2col:{opt clear:}}Replaces data in memory.{p_end}
{p2col:{opt lis:}}Only LIS surveys will be taken into account.{p_end}
{p2col:{opt module:}}It will search accordingly for those either "BIN" or "GPWG"\"GMD" surveys.{p_end}
{p2col:{opt veralt(##)}}If given it will use surveys with the given alternative version.{p_end}
{p2col:{opt vermast(##)}}If given it will use surveys with the given master version.{p_end}
{p2col:{opt lyear}}If set list the years availible for a given country. The local years containg them is returned.{p_end}
{space 4}{hline}
{p 4 4 2}
{center:{hline 16}}
{center:{bf:Examples}}
{center:{hline 16}}
{p 7 4 2} {bf:load gpwg}{p_end}
{space 4}{hline 15}
{p 4 4 2}
One of the most simple queries possible is only setting the country and a year:{p_end}
{phang2}
{stata pcn load, countries(col) year(2016) clear}
{p 4 4 2}
In this example, as there is more than one survey that fulfils the conditions, a list
with available options is displayed, and the user must choose among the options.{p_end}
{p 4 4 2}
Even if sometimes useful, the list is not always ideal. The user may be more specific
in order to get the specific file that she/he has in mind. For example, if the
desired file is the LIS collection the user shall use the following command line:{p_end}
{phang2}
{stata pcn load, countries(col) year(2016) lis clear}
{p 4 4 2}
The same result is obtained with:{p_end}
{phang2}
{stata pcn load, countries(col) year(2016) module(BIN) clear}
{p 4 4 2}
The use of the option {opt lis} implies {opt module(BIN)}. If options {opt lis}
and {opt module(GPWG)}, {opt lis} would take predominance.{p_end}
{p 4 4 2}
Notice that the latest master version is the one loaded in the previous examples.
Nonetheless, it may be the case that a different master or an alternative version
is the one needed. This is mainly the case for replication exercises.
The options {opt vermast} and {opt veralt} allows to retrive this particular set(s) of infomation, as follows:{p_end}
{phang2}
{stata pcn load, countries(chl) year(2000) vermast(01) veralt(04) module(GPWG)}
{p 4 4 2}
You may also specify the survey needed:{p_end}
{phang2}
{stata pcn load, countries(nor) year(2010) survey(His-lis)}
{p 4 4 2}
Finally, it is strongly recommended that, both main parameters, {opt year} and {opt countries}, are
always set. Nonetheless, only setting the country is possible, in such case the lastest
survey year is set as default.{p_end}
{phang2}
{stata pcn load, countries(chl) clear}
{p 4 4 2}
The same is not true is the missing parameter is {opt countries}. This parameter is
compulsory.{p_end}
{center:({help pcn_load:Go back to top})}
{center:({help pcn:Go back to Intro page})}
{p 7 4 2} {bf:load wrk}{p_end}
{space 4}{hline 15}
{p 4 4 2}
One of the most simple queries possible is only setting the country and a year:{p_end}
{phang2}
{stata pcn load wrk, countries(ury) year(2011) clear}
{p 4 4 2}
It is strongly recommended that, both main parameters, {opt year} and {opt countries}, are
always set. Nonetheless, only setting the year is possible, in such case the lastest
survey year is set as default.{p_end}
{phang2}
{stata pcn load wrk, countries(ury) clear}
{p 4 4 2}
The same is not true is the missing parameter is {opt countries}. This parameter is
compulsory.{p_end}
{center:({help pcn_load:Go back to top})}
{center:({help pcn:Go back to Intro page})}
{p 7 4 2} {bf:load cpi}{p_end}
{space 4}{hline 15}
{p 4 4 2}
The cpi structure is quite simple. Just run:{p_end}
{phang2}
{stata pcn load cpi, clear}
{p 4 4 2}
if you need to use a different version, insted of the latest one, use the option {opt version}. If you write pick, a clickcable list will be deployed:{p_end}
{phang2}
{stata pcn load cpi, version(pick) clear}
{p 7 4 2} {bf:load pf}{p_end}
{space 4}{hline 15}
{p 4 4 2}
Price framework structure:{p_end}
{phang2}
{stata pcn load pf, clear}
{p 4 4 2}
if you need to use a different version, insted of the latest one, use the option {opt version}. If you write pick, a clickcable list will be deployed:{p_end}
{phang2}
{stata pcn load pf, version(pick) clear}
{center:({help pcn_load:Go back to top})}
{center:({help pcn:Go back to Intro page})}