help for iefieldkit

Title

iefieldkit -- Returns information on the version of iefieldkit installed

For a more descriptive discussion on the intended usage and work flow of this
command please see the DIME Wiki.

Syntax

iefieldkit

Note that this command takes no arguments at all.

Description

This command returns the version of iefieldkit installed. It
can be used in the beginning of a Master Do-file that is intended to be used
by multiple users to programmatically test if iefieldkit is not installed for
the user and therefore need to be installed, or if the version the user has
installed is too old and needs to be upgraded.

This package includes the following commands:

- iecodebook

- ieduplicates and iecompdup

- ietestform

Options

This command does not take any options.

Examples

The code below is an example code that can be added to the top of any do-file.
the example code first test if the command is installed, and install it if not. If it is
installed, it test if the version is less than version 5.0. If it is, it
replaces the iefieldkit file with the latest version. In your code you can skip
the second part if you are not sure which version is required. But you should
always have the first part testing that r(version) has a value before using
it in less than or greater than expressions.

cap iefieldkit
if "`r(version)'" == "" {
*iefieldkit not installed, install it
ssc install iefieldkit
}
else if `r(version)' < 5.0 {
iefieldkit version too old, install the latest version
ssc install iefieldkit , replace
}

Authors

DIME Analytics, The World Bank, DECIE

Please send bug-reports, suggestions and requests for clarifications
writing "iefieldkit iefieldkit" in the subject line to the email address
found here

You can also see the code, make comments to the code, see the version
history of the code, and submit additions or edits to the code through
the github repository of iefieldkit:

https://github.com/worldbank/iefieldkit