Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Read a stored correlation matrix into pcamat


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Read a stored correlation matrix into pcamat
Date   Fri, 7 Feb 2014 09:15:58 +0000

-pcamat- requires a (Stata) matrix name as argument. The name of a
Stata dataset file doesn't qualify. If your matrix is contained in
variables in a Stata data file, read in that dataset and use -mkmat-
to make a matrix; then call up -pcamat-. If something else, something
else. No short-cuts here.
Nick
[email protected]


On 7 February 2014 01:00, Laurence (DataTreat Gmail)
<[email protected]> wrote:
> Dear List
> Does anyone know if it's possible to use an external file as input for
> pcamat?
> My two attempts:
> . pcamat "C:\documents\pcainput.dta", n(39000)
> "C:\documents\pcainput.dta invalid name
> matrix "C:\documents\pcainput.dta not found
> r(111);
>
> . pcamat C:\documents\pcainput.dta, n(39000)
> matrix C not found
>
> Regards
> Laurence
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index