ComreySolve | R Documentation |
Given a square matrix, such that the matrix is the outer product of a single vector with itself (except for the diagonal, which is ignored), determine the vector that was originally used. ComreySolve also has a helper function called ComreyIterate. There isn't really any reason why you would use Comrey iterate by itself.
ComreySolve(M, precision = 0.005)
M |
A square matrix. |
precision |
The level of error at which the process will stop iterating and return an answer. Error is measured as "change in output vector between two iteration steps." |
A single vector of numbers representing the vector that was originally used to create M.
NOTE TO SELF: I really need to go back and re-read Comrey's paper to make sure I have done this right!
Alastair Jamieson Lane. <aja107@math.ubc.ca>
Benjamin Grant Purzycki. <bgpurzycki@alumni.ubc.ca>
The Minimum Residual method of Factor Analysis. Comrey, A.L. Psychological Reports, (1962) 11:15-18
x<- 1:5
mat<- x \%*\% t(x)
y<- ComreySolve(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.