logistic Principal Component Analysis for binary data (gene presence absence between 3 states)
0
0
Entering edit mode
2.8 years ago

Hi all.

I have a question on logistic PCA for my data.

I have a data of gene_presence_absence following states (stateA, stateB, stateC), and I'd like to show this on Coordinate plot using logistic PCA. So that I can show genes are clustered following states, and stateA and B have similar clustering pattern. As I know, logistic PCA is used for binary data, right?

So I refer to a code on this link (https://cran.r-project.org/web/packages/logisticPCA/vignettes/logisticPCA.html), but it shows me an error ("Error in rep(1, nrow(newdata)) : Wrong factor, 'times'") . I have no idea whether I use a code incorrectly or my dataset is wrong. I set the data as same as its test data (Matrix containing binary data as numeric type, rows as a state and columns as a factor of binary data (gene's name in my case)).

Thank you for all of your comments in advance!

gene logistic PCA binary • 1.1k views
ADD COMMENT

Login before adding your answer.

Traffic: 2395 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6