Open
Conversation
The hardest part of a centroid extraction in R is dealing with the sign vector used to maximize positive manifold before each factor is extracted. This function implements a new algorithm from the IFI-Zurich report in references list. This will not be a function called by the user, but will be wrapped in the centroid extraction function.
The function committed last time is renamed and debugged, and supplemented by all other necessary functions. Given an input matrix X (correlation matrix), "results <- qcf(X)" will return centroid FA results. At this stage it has been tested on three datasets and seems to give the same results as other standards. More testing needed.
Owner
|
Since this is a new function, it needs a help file (.../man/centroid.Rd) and has to follow other standard R package instructions: extension *.R, changes in namespace, etc. Otherwise it won't pass the checks to be built as an R package (and people won't know how to use it either, e.g. which are the arguments to pass to this function?). |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
try something like...
ldata <- import.pqmethod("lipset.dat")
lcor <- cor(ldata)
results <- qcf(lcor)
results