Am 24.08.2010 06:31, schrieb Henrique Andrade:
Using the following command:
<script>
print "Mean Error = " ME
.
.
.
print "Theil's U = " UTheil
</script>
But it is not working. Any hints?
There may be some language out there where that syntax would work, but
not in gretl as you noticed :-)
Try this instead:
printf "Mean Error = %f\n", ME
and so forth. The '%f' tells gretl to print the value of ME at that
position, where the 'f' part says to print it in a standard format for
floating point numbers. (IIRC %d would be for integers, for example.
There are many many formatting options for those things, taken from the
C language I think.)
The '\n' tells gretl to start a new line, which is implicit in 'print'
but not in 'printf'.
HTH,
sven