Re: [R] How-To construct a cov list to use a covariance matrix in factanal?

2007-02-07 Thread Prof Brian Ripley
We still do not have reproducible code, but a 'dataframe' is not a matrix. And I would expect a covariance matrix to have the same row and column names: the examples do. On Wed, 7 Feb 2007, Alistair Campbell wrote: Thanks for that Brian, I have worked through the examples. They work because

[R] How-To construct a cov list to use a covariance matrix in factanal?

2007-02-06 Thread Alistair Campbell
Hi, I have a set of covariance matrices but not the original data. I want to carry out some exploratory factor analysis. So, I am trying to construct a covariance matrix list as the input for factanal. I can construct a list which includes the cov, the centers, and the n.obs. But it doesn't

Re: [R] How-To construct a cov list to use a covariance matrix in factanal?

2007-02-06 Thread Prof Brian Ripley
The help page says covmat: A covariance matrix, or a covariance list as returned by 'cov.wt'. Of course, correlation matrices are covariance matrices. and there is an example of a covariance list (ability.cov). factanal(factors = 2, covmat = ability.cov)

Re: [R] How-To construct a cov list to use a covariance matrix in factanal?

2007-02-06 Thread Alistair Campbell
Thanks for that Brian, I have worked through the examples. They work because the covmat were produced by the cov.wt which provides output as a list object. I am trying to construct my own list object to use as the covmat. There are no obvious instructions on how to do this. So, here is what I

Re: [R] How-To construct a cov list to use a covariance matrix in factanal?

2007-02-06 Thread William Revelle
Alistair, I have worked through the examples. They work because the covmat were produced by the cov.wt which provides output as a list object. I am trying to construct my own list object to use as the covmat. There are no obvious instructions on how to do this. So, here is what I have done