Am 07.12.2010 05:26, schrieb Henrique Andrade:
I'd attached my current data set. If I could fill all the missing values
with
some number (e.g. 9999) I would solve my problem using the command:
matrix A = { dataset }
Is there a way to fill the missing observations with some arbitrary number
using Gretl scripting?
maybe something like:
mynumber = 9999
matrix newA = misszero(A) + missing(A)*mynumber
Actually there may be a case to replace the misszero() function with
something slightly more general, e.g. missrepl() or frommiss() which
takes a second optional argument to determine the value with which the
missings should be replaced (and in analogy generalize zeromiss() to
setmiss() or tomiss() or whatever).
cheers,
sven