I am trying to apply nlpca to my dataset, below are my code:
# principal component analysis to determine important predictors
pr.out = pca(na.omit(combined_num[,-c(1)]), nPcs=15, method="nlpca", maxSteps = 6000)
dat = data.frame(pr.out@scores)
dim(dat)
>>[1] 2955 15
dim(combined_num)[1]
>>[1] 39325
from the output above, the number of observations contained in the scores function is 2955, whereas the number of observations contained in the original dataset is 39325; what is causing this mismatch? is this possibly because I specified maxSteps to be too small?
Hello,
I am trying to apply nlpca to my dataset, below are my code:
from the output above, the number of observations contained in the scores function is 2955, whereas the number of observations contained in the original dataset is 39325; what is causing this mismatch? is this possibly because I specified
maxSteps
to be too small?Thank you,