Question: The cor and corp values in verboseScatterplot don't match with cor, corPvalueStudent results
gravatar for joseph
8 months ago by
joseph40 wrote:

The cor and cor p value in the verboseScatterplot don't match with cor() and corPvalueStudent() results. The codes as below:

  geneTraitSignificance =, sel_trait, use = "p"))
  GSPvalue =, nSamples))

                         xlab = paste("Module Membership in", module, "module"),
                         ylab = paste("Gene significance for",colnames(df_geneTraitGS)[i]),
                         main = paste("Module membership vs. Gene significance\n"),
                         cex.main = 1.2, cex.lab = 1.2, cex.axis = 1.2,
                         pch = 21, col = "black", bg = module)

ADD COMMENTlink modified 8 months ago by Lluís R310 • written 8 months ago by joseph40
gravatar for Lluís R
8 months ago by
Lluís R310
European Union
Lluís R310 wrote:

verboseScatterplot calculates the p-value of the correlation with corPvalueStudent. corPvalueStudent requires the right number of samples to calculate the correct p-value, is a bit more complex than just the input number of samples.  However the function corAndPvalue calculates the p-value and the correlation correctly using the right number of samples to calculate the p-value.

ADD COMMENTlink written 8 months ago by Lluís R310
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 302 users visited in the last hour