Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
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 njcoxstata@gmail.com On 7 February 2014 01:00, Laurence (DataTreat Gmail) <datatreat@gmail.com> 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/