-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
4,517 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
*! version 1.0.1 March 10, 2011 @ 17:17:09 | ||
*! downloads all packages and ancillary files from a net from site | ||
program define getpkgs | ||
version 11.1 | ||
local self "getpkgs" | ||
syntax, from(str) [Describe ANcillary ADo all more log(str) replace] | ||
if "`all'"!="" { | ||
local describe "describe" | ||
local ancillary "ancillary" | ||
local ado "ado" | ||
} | ||
if "`more'"=="" { | ||
set more off | ||
} | ||
tempfile toc results | ||
tempname toch logn | ||
if `"`log'"'!="" { | ||
log using `log', name(`logn') `replace' | ||
local capture "capture n" | ||
} | ||
`capture' { | ||
net from "`from'" // have quotes for file names | ||
// would normally preserve current -net from- but this looks to be impossible | ||
copy "`from'/stata.toc" `toc' | ||
file open `toch' using `toc', read | ||
file read `toch' tocline | ||
while "`r(status)'"!="eof" { | ||
if strpos(ltrim(`"`tocline'"'),"p")==1 { | ||
local pkg : word 2 of `tocline' | ||
display as text _newline "Trying to get package " as result `"`pkg'"' _newline | ||
if "`describe'"!="" { | ||
net describe `pkg' | ||
} | ||
if "`ado'"!="" { | ||
net install `pkg' | ||
} | ||
if "`ancillary'"!="" { | ||
net get `pkg' | ||
} | ||
} | ||
file read `toch' tocline | ||
} | ||
} // possible capture block | ||
capture file close `toch' | ||
if `"`capture'"'!="" { | ||
log close `logn' | ||
view `"`log'.smcl"' | ||
if _rc { | ||
exit _rc | ||
} | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
*! version 1.1.0 October 16, 2015 @ 22:07:33 | ||
*! wrapper for getpkgs to grab things from local site | ||
program define gettrain | ||
version 11.1 | ||
syntax, date(str) [ local stage log(str) suffix(str) ] | ||
if "`log'"=="" { | ||
local log "downloadtest" | ||
} | ||
if "`local'"!="" { | ||
if "`stage'"!="" { | ||
display as error "May not specify -local- and -stage- at the same time" | ||
exit 198 | ||
} | ||
local from : dir "/Volumes/Shuttle/Training/Sessions" dirs /// | ||
`"`:display %tdCCYY_NN_DD date("`date'","DMY")' *"' | ||
local howmany : word count `from' | ||
if `howmany'==0 { | ||
display as error "No training folder for `date' found" | ||
exit 9 | ||
} | ||
else if `howmany' > 1 { | ||
display as error "Found multiple folders for `date':" | ||
display as result `" `from'"' | ||
exit 9 | ||
} | ||
local from : subinstr local from `"""' "", all // " for emacs | ||
local from `"/Volumes/Shuttle/Training/Sessions/`from'/Handouts"' | ||
} | ||
else { | ||
if "`stage'"!="" { | ||
local from "http://localhost:8006/training" | ||
} | ||
else { | ||
local from "http://www.stata.com/training" | ||
} | ||
} | ||
|
||
capture erase `"`log'.smcl"' | ||
getpkgs, from(`from'/`date'`suffix') all log(`log') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
<html xmlns:o="urn:schemas-microsoft-com:office:office" | ||
xmlns:x="urn:schemas-microsoft-com:office:excel" | ||
xmlns="http://www.w3.org/TR/REC-html40"> | ||
|
||
<head> | ||
<meta http-equiv=Content-Type content="text/html; charset=macintosh"> | ||
<meta name=ProgId content=Excel.Sheet> | ||
<meta name=Generator content="Microsoft Excel 15"> | ||
<link rel=File-List href="buyers.fld/filelist.xml"> | ||
<style> | ||
<!--table | ||
{mso-displayed-decimal-separator:"\."; | ||
mso-displayed-thousand-separator:"\,";} | ||
@page | ||
{margin:.75in .7in .75in .7in; | ||
mso-header-margin:.5in; | ||
mso-footer-margin:.5in;} | ||
.style0 | ||
{mso-number-format:General; | ||
text-align:general; | ||
vertical-align:bottom; | ||
white-space:nowrap; | ||
mso-rotate:0; | ||
mso-background-source:auto; | ||
mso-pattern:auto; | ||
color:windowtext; | ||
font-size:10.0pt; | ||
font-weight:400; | ||
font-style:normal; | ||
text-decoration:none; | ||
font-family:Arial; | ||
mso-generic-font-family:auto; | ||
mso-font-charset:0; | ||
border:none; | ||
mso-protection:locked visible; | ||
mso-style-name:Normal; | ||
mso-style-id:0;} | ||
td | ||
{mso-style-parent:style0; | ||
padding-top:1px; | ||
padding-right:1px; | ||
padding-left:1px; | ||
mso-ignore:padding; | ||
color:windowtext; | ||
font-size:10.0pt; | ||
font-weight:400; | ||
font-style:normal; | ||
text-decoration:none; | ||
font-family:Arial; | ||
mso-generic-font-family:auto; | ||
mso-font-charset:0; | ||
mso-number-format:General; | ||
text-align:general; | ||
vertical-align:bottom; | ||
border:none; | ||
mso-background-source:auto; | ||
mso-pattern:auto; | ||
mso-protection:locked visible; | ||
white-space:nowrap; | ||
mso-rotate:0;} | ||
.xl65 | ||
{mso-style-parent:style0; | ||
font-weight:700;} | ||
.xl66 | ||
{mso-style-parent:style0; | ||
font-weight:700; | ||
text-align:center;} | ||
--> | ||
</style> | ||
</head> | ||
|
||
<body link="#0563C1" vlink="#954F72"> | ||
|
||
<table border=0 cellpadding=0 cellspacing=0 width=464 style='border-collapse: | ||
collapse;table-layout:fixed;width:347pt'> | ||
<col width=107 style='mso-width-source:userset;mso-width-alt:3413;width:80pt'> | ||
<col width=71 span=2 style='width:53pt'> | ||
<col width=29 style='mso-width-source:userset;mso-width-alt:938;width:22pt'> | ||
<col width=115 style='mso-width-source:userset;mso-width-alt:3669;width:86pt'> | ||
<col width=71 style='width:53pt'> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 class=xl66 width=107 style='height:13.0pt;width:80pt'>Name</td> | ||
<td class=xl66 width=71 style='width:53pt'>Score</td> | ||
<td class=xl66 width=71 style='width:53pt'># Teams</td> | ||
<td class=xl65 width=29 style='width:22pt'><span | ||
style='mso-spacerun:yes'> </span></td> | ||
<td class=xl65 width=115 style='width:86pt'>Teams</td> | ||
<td width=71 style='width:53pt'></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Zach B.</td> | ||
<td align=right>19</td> | ||
<td align=right>1</td> | ||
<td></td> | ||
<td colspan=2 style='mso-ignore:colspan'>North Carolina</td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Nate Silver</td> | ||
<td align=right>19</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Chris</td> | ||
<td align=right>15</td> | ||
<td align=right>1</td> | ||
<td></td> | ||
<td colspan=2 style='mso-ignore:colspan'>North Carolina</td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Mary R.</td> | ||
<td align=right>14</td> | ||
<td align=right>1</td> | ||
<td></td> | ||
<td colspan=2 style='mso-ignore:colspan'>North Carolina</td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Nathan</td> | ||
<td align=right>13</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Ben</td> | ||
<td align=right>12</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Bill R.</td> | ||
<td align=right>11</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Vince</td> | ||
<td align=right>11</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Ashish</td> | ||
<td align=right>10</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Peter F.</td> | ||
<td align=right>10</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Steve N.</td> | ||
<td align=right>10</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Anna</td> | ||
<td align=right>9</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td height=17 style='height:13.0pt'>Collin</td> | ||
<td align=right>9</td> | ||
<td align=right>0</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr height=17 style='height:13.0pt'> | ||
<td colspan=5 height=17 style='height:13.0pt'>Updated April 3, 2017 23:43:41 | ||
EDT</td> | ||
<td></td> | ||
</tr> | ||
</table> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
v 3 | ||
d ckvar Allows validation to easily be defined and attached directly to variables. | ||
d | ||
d A system for storing validation or scoring rules with the variables | ||
d in a dataset, and then running the validation or scoring. | ||
d By attaching the validation rules to the variables themselves, they | ||
d are available even if the dataset is merged, appended, or subsetted. | ||
d This beats having a codebook, because sharing the data means sharing | ||
d the validation as well. | ||
d | ||
d A dialog box is provided to make entering the validation rules quite | ||
d simple. A helper command allows saving the rules in a do-file for | ||
d attaching to a similar dataset in the future. | ||
d | ||
d Distribution-Date: 19sep2007 | ||
d | ||
d Bill Rising | ||
d StataCorp LP | ||
d email:brising at stata dot com | ||
f ckvar/_char2dlg.ado | ||
f ckvar/_ck4like.ado | ||
f ckvar/_ckneeded.ado | ||
f ckvar/_ckvarnext.ado | ||
f ckvar/_set2logic.ado | ||
f ckvar/_stata2logic.ado | ||
f ckvar/ckchar.hlp | ||
f ckvar/ckcharstub.ihlp | ||
f ckvar/ckcodebook.ado | ||
f ckvar/ckdrop.ado | ||
f ckvar/ckdrop.hlp | ||
f ckvar/ckdrop_vars.dlg | ||
f ckvar/ckkeep.ado | ||
f ckvar/ckkeep.hlp | ||
f ckvar/ckrename.ado | ||
f ckvar/ckrename.hlp | ||
f ckvar/ckvar.ado | ||
f ckvar/ckvar.hlp | ||
f ckvar/ckvar_overview.hlp | ||
f ckvar/ckvar_rule_syntax.ihlp | ||
f ckvar/ckvarclear.ado | ||
f ckvar/ckvarclear.hlp | ||
f ckvar/ckvardo.ado | ||
f ckvar/ckvardo.hlp | ||
f ckvar/ckvaredit.ado | ||
f ckvar/ckvaredit.dlg | ||
f ckvar/ckvaredit.hlp | ||
f ckvar/ckvareditSave.ado | ||
f ckvar/ckvarupdate.ado | ||
f ckvar/dochar.ado | ||
f ckvar/dochar.hlp | ||
f ckvar/docharedit.ado | ||
f ckvar/docharedit.hlp | ||
f ckvar/docharprog.hlp |
Oops, something went wrong.