Skip to content

Instantly share code, notes, and snippets.

@soumyaray
Created April 18, 2016 03:58
Show Gist options
  • Save soumyaray/40dae36384b4cd5dae17f3ad9fa1a1ba to your computer and use it in GitHub Desktop.
Save soumyaray/40dae36384b4cd5dae17f3ad9fa1a1ba to your computer and use it in GitHub Desktop.
> pca
Principal Components Analysis
Call: principal(r = agg.data.clean, nfactors = 17, rotate = "none",
scores = TRUE)
Standardized loadings (pattern matrix) based upon correlation matrix
PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 PC16 PC17
alive.days 0.73 -0.35 0.10 -0.04 -0.16 -0.07 0.04 0.18 -0.04 -0.16 -0.13 0.30 0.03 0.01 0.35 -0.12 0.00
average.downloads -0.12 0.26 0.29 -0.18 0.28 -0.24 0.29 0.33 0.68 0.02 -0.11 -0.03 0.01 0.00 0.01 -0.01 0.00
total.commits 0.63 0.51 -0.26 0.08 -0.08 -0.06 -0.02 0.03 0.05 -0.17 0.09 -0.04 0.01 0.46 -0.02 0.01 0.00
weekday.commits.percentage 0.19 -0.22 -0.01 0.12 -0.32 0.35 -0.58 -0.07 0.55 0.17 0.06 0.02 0.01 0.00 0.01 0.01 0.00
commit.pattern 0.02 0.00 -0.09 -0.04 -0.44 0.55 0.68 -0.09 0.10 0.08 -0.04 -0.02 0.00 0.01 -0.01 0.01 0.00
closed.issues 0.69 0.60 -0.18 -0.06 0.06 0.00 -0.04 -0.21 0.01 0.13 -0.17 0.01 0.00 -0.16 0.01 -0.05 0.03
total.issues 0.71 0.59 -0.17 -0.06 0.06 0.00 -0.04 -0.20 0.01 0.12 -0.16 0.00 0.00 -0.13 0.01 -0.03 -0.03
average.issue.resolution.time -0.55 0.41 -0.17 -0.08 0.18 0.15 0.02 -0.06 0.05 0.01 0.33 0.56 0.08 -0.01 -0.02 -0.02 0.00
top.contributors.contribution -0.67 0.17 -0.21 0.40 -0.08 -0.20 0.03 -0.07 0.01 0.26 -0.31 0.11 0.01 0.06 0.17 0.25 0.00
average.commits.per.contributor 0.31 0.23 -0.31 0.56 -0.24 -0.15 0.07 0.46 0.02 -0.14 0.26 -0.04 -0.01 -0.22 -0.04 0.03 0.00
contributors 0.79 -0.09 0.20 -0.30 0.17 0.16 0.01 0.07 -0.04 -0.08 0.19 0.01 0.01 -0.05 0.04 0.37 0.00
average.forks -0.06 0.42 0.73 0.16 -0.18 0.02 -0.04 -0.04 -0.07 -0.03 0.04 0.09 -0.46 0.01 0.00 0.00 0.00
average.stars -0.07 0.40 0.73 0.19 -0.17 0.04 -0.05 -0.03 -0.12 -0.03 0.00 -0.05 0.46 0.00 0.00 -0.01 0.00
last.commit.days -0.58 0.42 -0.12 -0.03 0.26 0.39 -0.10 0.10 -0.05 -0.07 0.17 -0.31 -0.04 -0.01 0.31 -0.04 0.00
readme.word.count 0.44 -0.12 0.12 0.19 0.30 0.24 0.02 0.38 -0.20 0.62 0.01 0.04 -0.01 0.10 -0.04 -0.06 0.00
number.badges 0.36 -0.29 0.13 0.35 0.20 -0.26 0.25 -0.50 0.16 0.17 0.39 -0.09 0.00 0.01 0.11 -0.04 0.00
has.test 0.20 -0.19 0.05 0.54 0.48 0.39 0.03 -0.10 0.08 -0.39 -0.26 0.08 0.00 0.00 -0.07 0.01 0.00
h2 u2 com
alive.days 1 5.6e-16 3.1
average.downloads 1 2.8e-15 4.0
total.commits 1 -1.1e-15 3.6
weekday.commits.percentage 1 1.0e-15 4.3
commit.pattern 1 1.2e-15 2.9
closed.issues 1 2.2e-16 2.7
total.issues 1 0.0e+00 2.6
average.issue.resolution.time 1 -2.2e-16 4.3
top.contributors.contribution 1 -2.2e-16 4.1
average.commits.per.contributor 1 0.0e+00 5.7
contributors 1 -2.2e-16 2.4
average.forks 1 8.9e-16 2.8
average.stars 1 1.1e-16 2.8
last.commit.days 1 -1.1e-15 5.2
readme.word.count 1 0.0e+00 4.5
number.badges 1 -2.2e-16 7.3
has.test 1 -2.0e-15 5.2
PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 PC16 PC17
SS loadings 4.14 2.12 1.55 1.15 1.04 1.02 0.97 0.89 0.88 0.79 0.66 0.54 0.43 0.32 0.27 0.22 0
Proportion Var 0.24 0.12 0.09 0.07 0.06 0.06 0.06 0.05 0.05 0.05 0.04 0.03 0.03 0.02 0.02 0.01 0
Cumulative Var 0.24 0.37 0.46 0.53 0.59 0.65 0.71 0.76 0.81 0.86 0.89 0.93 0.95 0.97 0.99 1.00 1
Proportion Explained 0.24 0.12 0.09 0.07 0.06 0.06 0.06 0.05 0.05 0.05 0.04 0.03 0.03 0.02 0.02 0.01 0
Cumulative Proportion 0.24 0.37 0.46 0.53 0.59 0.65 0.71 0.76 0.81 0.86 0.89 0.93 0.95 0.97 0.99 1.00 1
Mean item complexity = 4
Test of the hypothesis that 17 components are sufficient.
The root mean square of the residuals (RMSR) is 0
with the empirical chi square 0 with prob < NA
Fit based upon off diagonal values = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment