*! version 1.0.1 XXoct2017
help ereplace

Version: 1.0.2 (XX October, 2017)

Title

ereplace -- A program that extends egen and egenmore (SSC) to permit replacing

Syntax

ereplace
[type]
varname
=
fcn(arguments)
[if exp]
[in range]
[, options]

Description

ereplace extends the popular egen and egenmore (if installed) modules
to permit replacing. ereplace replaces varname of the optionally specified storage type [type]
equal to fcn(arguments). Depending on
fcn(), arguments refers to an expression, a
varlist, a numlist, or an empty string. The options are
similarly function dependent.

Example

sysuse e_example

ereplace percent = cut(percent), at(0(20)100) //using cut() function from egen
ereplace strvar = sieve(strvar), char(.0123456789) //using sieve() function from egenmore

Maintainer

Chris Larkin, The Behavioural Insights Team

chris.larkin@bi.team

Acknowledgements

Nicholas J. Cox (n.j.cox@durham.ac.uk) is the first author of ereplace.