Skip to content
Prev 260175 / 398502 Next

help with PLSR Loadings

Amit Patel <amitrhelp at yahoo.co.uk> writes:
No, they don't.
Look at the first line of output.  These are the values, and they are
numeric (it is a matrix).  The other lines are attributes of the matrix.
This says that loadingplot.default could not convert variable _names_ to
numbers.  That is not surprising, since the variable names are PCIList1,
PCIList2, etc., and the documentation for loadinplot says:

     with '"numbers"', the variable names are converted to numbers, if
     possible.  Variable names of the forms '"number"' or '"number
     text"' (where the space is optional), are handled.

So don't ask the plot function to use numbers as labels.  Use e.g. names
instead: labels = "names".

Tip: It is always a good idea to read the output and error messages very
carefully.
Message-ID: <s3sipt8v42c.fsf@slagelg.uio.no>
In-Reply-To: <836827.3144.qm@web28402.mail.ukl.yahoo.com> (Amit Patel's message of "Tue\, 17 May 2011 18\:24\:25 +0100 \(BST\)")