Skip to content

Commit cad070c

Browse files
authored
Merge pull request #20 from worldbank/develop
[v1.0, 18SEP2019] develop->master
2 parents 0c0ed72 + 49f681a commit cad070c

18 files changed

+1862
-40
lines changed

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
!/**/*.sthlp
5555
!/**/*.toc
5656
!/**/*.pkg
57+
!/**/*.txt
5758

5859
# R
5960
!/**/*.R
@@ -71,12 +72,16 @@
7172
# Markdown
7273
!/**/*.md
7374

75+
#######################
76+
# Ignore folder for experimentation
77+
personal_test/
78+
7479
#######################
7580
# Include all the files with passwords or tokens here. All files named
7681
# password or passwords are with this template ignored no matter which
7782
# format you are using. Additionally, all content in any folder called
78-
password or passwords are also ignored. NOTE that your project might be
79-
using different names and then you must edit the lines below accordingly.
83+
# password or passwords are also ignored. NOTE that your project might be
84+
# using different names and then you must edit the lines below accordingly.
8085
password.*
8186
passwords.*
8287
password/

README.md

Lines changed: 56 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,73 @@
1-
**Edukit - Stata Commands for Education Data Analytics**
1+
**Edukit - Stata commands for learning assessments**
22
=====
3-
Logo. Blurb about EduAnalytics.
3+
<img align="left" src="https://user-images.githubusercontent.com/43160181/62169131-58ea6a00-b2f5-11e9-977f-18117cc9e42d.png" width="130">
4+
5+
This toolkit was developed by people that work at or with the **EduAnalytics** team at the World Bank Education Global Practice.
6+
7+
While the commands in this toolkit are developed with best practices for analysis of microdata of learning assessments in mind, some commands may be useful outside that field as well. Some commands are very specific to out own work flow, and might not suit other projects, but we want to share as much as possible for anyone to use if applicable.
8+
9+
410

511
### **Install and Update**
612

7-
#### Installing published versions of `edukit`
8-
One day **edukit** may make it to ssc but for now, it is not, so this option does not exist.
13+
###### Installing `edukit`
14+
**edukit** is currently not published on [SSC](https://www.stata.com/support/ssc-installation/), so it cannot be installed through `ssc install`.
15+
16+
If you want to install the most recent carefully curated version of **edukit** then you can use the code below:
17+
18+
```
19+
net install edukit, from("https://raw.githubusercontent.com/worldbank/eduanalyticstoolkit/master/src") replace
20+
```
21+
22+
The code above installs the version currently in the `master` branch. We merge **edukit** to the `master` branch after we have carefully added new features and documented them in help files.
923

10-
#### Installing unpublished branches of this repository
11-
Follow the instructions above if you want the most recent published version of **edukit**.
12-
If you want a yet to be published version of **edukit** then you can use the code below.
13-
The code below installs the version currently in the `master` branch, but replace _master_ in the URL below
14-
with the name of the branch you want to install from. You can also install older version of **edukit**
15-
like this.
24+
If you want to install a version of **edukit** not yet merged to the `master` branch then replace _master_ in the URL above with the name of the branch you want to install from. These versions of **edukit** have not yet been equally carefully tested for bugs, and might have features that are not yet documented in the help files, but you are still free to use them.
1625

26+
Similarly, to get the ancillary file in this package (_edukit_save_dyntext.txt_), you can use the code below.
1727
```
18-
net install edukit , from("https://raw.githubusercontent.com/worldbank/eduanalyticstoolkit/master/src") replace
28+
net get edukit, from("https://raw.githubusercontent.com/worldbank/eduanalyticstoolkit/master/src") replace
1929
```
2030

31+
###### Updating `edukit`
32+
To update **edukit** simply repeat the installation process that overwrites the files you currently have installed.
33+
34+
#### Installing `edukit` by cloning this repository
35+
An alternative to those who prefer not to use `net install` in Stata, is to install this package by cloning this repo and checking out the branch you choose to install (_master_ will be checked out by default). To update the package if the branch is updated, you would need to _pull_ the branch. The installation of the package through this method can be automated in your do file through the code below.
36+
37+
```stata
38+
* Specify the location of the clone of EduAnalytics toolkit repo
39+
global edukit_clone "C:/Users/WB111111/Documents/Github/EduAnalyticsToolkit"
40+
41+
* Load eduanalytics toolkit package
42+
cap net uninstall edukit
43+
net install edukit.pkg, from("${edukit_clone}/src") replace
44+
```
45+
46+
This would be the best method to use if you need to adapt these commands to meet the needs specific to your own project.
47+
2148
### **Content**
2249
**edukit** provides a set of commands that address different aspects of data management and data analysis for
23-
International/National Learning Assessments (ILA/NLA) microdata databases.
24-
The list of commands will be extended continuously, and suggestions for
50+
learning assessments microdata. The list of commands will be extended continuously, and suggestions for
2551
new commands are greatly appreciated.
2652

2753
- **edukit** returns meta info on the version of _edukit_ installed.
2854
Can be used to ensure that the team uses the same version.
55+
- **edukit_comparefiles** compares two files and list all the differences.
56+
It is similar to _cf_, but better at handling different number of observations,
57+
the data doesn't need to be sorted, and it can create a markdown file of the differences.
58+
- **edukit_datalibweb** calls _datalibweb_ repeatedly to prevent breaking a loop if connection is temporarily lost or other issues arise while querying many files. _Datalibweb_ is a currently only available for Stata users within the World Bank, so this command is not intended to be used outside the World Bank.
59+
- **edukit_dlwcheck** validates file and folders structures in EduAnalytics' network folder.
60+
- **edukit_rmkdir** conveniently creates folders and sub-folders recursively.
2961
- **edukit_save** is a modified version of the save command to ensure quality of databases.
3062
Before saving, it compress, check _isid_, and has options to store metadata as _char_
31-
plus flexibility to execute special commands for eduanalytics.
32-
- **edukit_pandoc** calls pandoc in a shell to convert between two formats.
33-
Intended to easily convert HTML created by dyndoc to GitHub-flavored Markdown,
34-
but made in a flexible way that other input and output files are allowed.
63+
plus flexibility to execute special commands for EduAnalytics.
64+
It comes with a companion _dyntext_ example.
65+
- **edukit_save_dyntext** is a txt to be used with _dyntext_ to automatically generate
66+
documentation for a dataset, based on metadata stored by _edukit_save_. Given that it
67+
is an ancillary file in the package, it must be downloaded through _net get_ instead of _net install_.
68+
69+
### **Contact**
70+
The team can be reached at [eduanalytics@worldbank.org](mailto:eduanalytics@worldbank.org).
71+
72+
### **Authors**
73+
Kristoffer Bjärkefur, Diana Goldemberg

src/ado_files/edukit.ado

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
*! version 0.2 15JUL2019 EduAnalytics eduanalytics@worldbank.org
1+
*! version 1.0 18SEP2019 EduAnalytics eduanalytics@worldbank.org
22

33
capture program drop edukit
44
program edukit, rclass
55

66
* UPDATE THESE LOCALS FOR EACH NEW VERSION PUBLISHED
7-
local version "0.2"
8-
local versionDate "15JUL2019"
7+
local version "1.0"
8+
local versionDate "18SEP2019"
99

1010
syntax [anything]
1111

0 commit comments

Comments
 (0)