On Tue, 20 Jun 2017, Schaff, Frederik wrote:
Dear gretl users,
I have created a matrix with 4 columns and 1000 rows and now I'd like to
use the boxplot command on it, but it is (despite it should) not
working... what am I getting wrong? Here is a MWE:
----------
nulldata 1000
matrix A=zeros(1000,4)
loop for r=1..1000
loop for c=1..4
A[r,c]= randgen1(u,0,c)
endloop
endloop
boxplot --matrix=A --output=display
------------
Error msg:
? boxplot --matrix=A --output=display
Command has insufficient arguments
You have to tell boxplot which columns of the matrix you want plotted. In
your case, I suspect that what you want is
<hansl>
boxplot 1 2 3 4 --matrix=A --output=display
</hansl>
Also: you may want to use the --quiet option for loops ;)
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------