ddionrails / collect_stata

Accumulate data from stata files and write it into an open format
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

collect_stata

The tool reads dta-files, calculates some univariate statistics for each variable and writes out a json-file with these calculations and the metadata (extracted from stata).

The purpose of the project is the preprocessing of data for ddionrails.

Install from source

pip install git+git://github.com/ddionrails/collect_stata.git@v0.1.0

Setup for development

Usage

collect_stata -i [input_path] -o [output_path] -s [study_name]

Example:

collect_stata -i ~/teststudy/ -o ~/test/ -s teststudy

optional arguments:

--help, -h : Show help information --multiprocessing, -m Process stata files in parallel --latin1, -l Set this if your source stata files are encoded with Latin-1 or Windows-1252 --debug, -d Set logging Level to DEBUG --verbose, -v Set logging Level to INFO

License

BSD-3-Clause