-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetpkgs.sthlp
149 lines (115 loc) · 3.83 KB
/
getpkgs.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
{smcl}
{* *! version September 6, 2017 @ 10:28:09}{...}
{* delete if no dialog box}{...}
{viewerdialog "getpkgs" "dialog getpkgs"}{...}
{* link to manual entries (really meant for stata to link to its own docs}{...}
{vieweralsosee "[?] whatever" "mansection ? whatever"}{...}
{* a divider if needed}{...}
{vieweralsosee "" "--"}{...}
{* link to other help files which could be of use}{...}
{vieweralsosee "[?] whatever" "help whatever "}{...}
{viewerjumpto "Syntax" "getpkgs##syntax"}{...}
{viewerjumpto "Description" "getpkgs##description"}{...}
{viewerjumpto "Options" "getpkgs##options"}{...}
{viewerjumpto "Remarks" "getpkgs##remarks"}{...}
{viewerjumpto "Examples" "getpkgs##examples"}{...}
{viewerjumpto "Stored Results" "getpkgs##stored_results"}{...}
{viewerjumpto "Acknowledgements" "getpkgs##acknowledgements"}{...}
{viewerjumpto "Author" "getpkgs##author"}{...}
{viewerjumpto "References" "getpkgs##references"}{...}
{...}
{title:Title}
{phang}
{cmd:getpkgs} {hline 2} Get all packages from a download site
{p_end}
{marker syntax}{...}
{title:Syntax}
{* put the syntax in what follows. Don't forget to use [ ] around optional items}{...}
{p 8 17 2}
{cmd: getpkgs}
{cmd:,}
{opt from(directory_or_url)}
[
{opt d:escribe}
{opt an:cillary}
{opt ad:o}
{opt copy}
{opt all}
{opt add}
{opt replace}
{opt subdirs}
{opt more}
{opt log(file)}
]
{p_end}
{* the new Stata help format of putting detail before generality}{...}
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{syntab:Main}
{synopt:{opt min:abbrev}}description of what option{p_end}
{synopt:{opt min:abbrev(arg)}}description of another option{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}{* if by is allowed, leave the following}
{cmd:by} is allowed; see {manhelp by D}.{p_end}
{p 4 4 2}{* if weights are allowed, say which ones}
{cmd:fweight}s are allowed; see {help weight}.
{marker description}{...}
{title:Description}
{pstd}
{cmd:getpkgs} does ... (now put in a one-short-paragraph description of the purpose of the command)
{p_end}
{marker options}{...}
{title:Options}
{phang}{opt whatever} does yak yak
{p_end}
{pmore}Use -pmore- for additional paragraphs within and option description.
{p_end}
{phang}{opt 2nd option} etc.
{marker remarks}{...}
{title:Remarks}
{pstd}
The remarks are the detailed description of the command and its nuances.
Official documented Stata commands don't have much for remarks, because the remarks go in the documentation.
{p_end}
{marker examples}{...}
{title:Example(s)}{* Be sure to change Example(s) to either Example or Examples}
{phang}{cmd:. some sample input here}{* an example with no explanation}
{p_end}
{phang}{cmd:. another sample input here}{break}
An example with explanation
{p_end}
{marker stored_results}{...}
{title:Stored results}
{pstd}{* replace r() with e() for an estimation command}
{cmd:summarize} stores the following in {cmd:r()}:
{* here is everything saved from estimation commands}{...}
{synoptset 20 tabbed}{...}
{p2col 5 20 24 2: Scalars}{p_end}
{synopt:{cmd:r(N)}}number of observations{p_end}
{synoptset 20 tabbed}{...}
{p2col 5 20 24 2: Macros}{p_end}
{synoptset 20 tabbed}{...}
{p2col 5 20 24 2: Matrices}{p_end}
{synoptset 20 tabbed}{...}
{p2col 5 20 24 2: Functions}{p_end}
{marker acknowledgments}{...}
{title:Acknowledgements}
{pstd}
If you have thanks specific to this command, put them here.
{marker author}{...}
{title:Author}
{pstd}
Bill Rising, StataCorp{break}
email: [email protected]{break}
web: {browse "http://louabill.org":http://louabill.org}
{p_end}
{marker references}{...}
{title:References}
{pstd}{* here is a shill example entry from the -regress- command}
{marker AP2009}{...}
{phang}
Angrist, J. D., and J.-S. Pischke. 2009.
{browse "http://www.stata.com/bookstore/mhe.html":{it:Mostly Harmless Econometrics: An Empiricist's Companion}.}
Princeton, NJ: Princeton University Press.