-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output p-values #33
Comments
Hey, |
Hi Irina, It shouldn't be zero. Or did you control for multiple testing? Or, as pinusm suggests, have few iterations? |
Hi both, here is the function I used. I did control for multiple testing and have many iterations. So what do those zeros mean in this case? NCT1 <- NCT(Male, Female, weighted = TRUE, test.edges = FALSE, estimator = myGlassoSpearman, |
Here is part of my output. Also apologies for delayed response. For some reason I am not getting email notifications. NETWORK INVARIANCE TESTTest statistic M: 0.129854 |
Hi Irina,
As I can see in your code, you apply a Bonferroni correction. If you would not get zeros, I assume. Could you try? But I also see zeros for M and S. With 5000 iterations, I would not expect that. Could you send me your data + code? Or a part of your data, as long as I can reproduce your issue. You can send it to ***@***.******@***.***>.
Also, use the updated version on github. I just updated it.
Thank you!
Claudia
From: IrinaV ***@***.***>
Date: Wednesday, 1 June 2022 at 05:08
To: cvborkulo/NetworkComparisonTest ***@***.***>
Cc: Claudia van Borkulo ***@***.***>, Comment ***@***.***>
Subject: Re: [cvborkulo/NetworkComparisonTest] Output p-values (Issue #33)
Here is part of my output. Also apologies for delayed response. For some reason I am not getting email notifications.
NETWORK INVARIANCE TEST
Test statistic M: 0.129854
p-value 0
GLOBAL STRENGTH INVARIANCE TEST
Global strength per group: 18.63467 16.82085
Test statistic S: 1.813817
p-value 0
strength expectedInfluence
R1 1.0000 0.0000
R4 0.0000 1.0000
R5 1.0000 0.3600
R7 1.0000 1.0000
R8 0.3744 1.0000
R9 0.0000 0.0000
R12 0.0000 0.0000
R14 0.0000 0.0288
—
Reply to this email directly, view it on GitHub<#33 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPVHTAOT3LYT4J6FM3LYRLVM3H3ZANCNFSM5WG2VDVQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi Irina,
Curious to see your code as well!
Best,
Claudia
Outlook voor iOS<https://aka.ms/o0ukef> downloaden
…________________________________
Van: Michael Pinus ***@***.***>
Verzonden: Wednesday, May 18, 2022 9:09:31 AM
Aan: cvborkulo/NetworkComparisonTest ***@***.***>
CC: Subscribed ***@***.***>
Onderwerp: Re: [cvborkulo/NetworkComparisonTest] Output p-values (Issue #33)
Hey,
Not Claudia, but I've seen this as well.
This might be related to the number of iterations you used.
Could you provide the function call that produced this?
—
Reply to this email directly, view it on GitHub<#33 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPVHTADAQZHHK5SWV6N7S3VKSJSXANCNFSM5WG2VDVQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I have noticed the same issue as Irina with my data |
Hi Alex, I did not hear back from Irina. Could you provide code with which I can reproduce this issue? |
Hi Claudia, thank you for the help, the code is below. If you need me to email you the excel file I imported the data from please let me know ############## remove(list = ls()) PriyaDataTNLCD <- as.data.frame(read_excel("/Users/alexcocker/Desktop/2022-11-13 - Priya Flow Data.xlsx",sheet=2,na = ".")) corTNLCD <- cor(DataTNLCD, use = "pairwise.complete.obs", method = "spearman") NCTTNLvsPTNLCD <- NCT(corTNLCD, corPTNLCD, it = 10000, p.adjust.methods= "bonferroni", test.edges=TRUE, edges="all", test.centrality=TRUE, centrality=c("strength","betweenness")) NCTTNLvsPTNLCD NETWORK INVARIANCE TEST GLOBAL STRENGTH INVARIANCE TEST EDGE INVARIANCE TEST
26 Neutro% HLA-DR+%CD14+CD16+ 1 |
Hi Alex,
I see that you used the Bonferroni correction but that should yield a 0 for
M and S. What does your output look like when you do not correct for
multiple testing? You could also email me the data or a part of it, as long
as it reproduces the issue.
Best,
Claudia
Op di 29 nov. 2022 om 06:23 schreef AlexCocker ***@***.***>:
… Hi Claudia, thank you for the help, the code is below. If you need me to
email you the excel file I imported the data from please let me know
##############
remove(list = ls())
library(readxl)
library(psych)
library(NetworkComparisonTest)
PriyaDataTNLCD <-
as.data.frame(read_excel("/Users/alexcocker/Desktop/2022-11-13 - Priya Flow
Data.xlsx",sheet=2,na = "."))
DataTNLCD <- PriyaDataTNLCD[,5:29]
PriyaDataPTNLCD <-
as.data.frame(read_excel("/Users/alexcocker/Desktop/2022-11-13 - Priya Flow
Data.xlsx",sheet=3,na = "."))
DataPTNLCD <- PriyaDataPTNLCD[,5:29]
Cellnames1 <-
as.data.frame(read_excel("/Users/alexcocker/Desktop/2022-11-13 - Priya Flow
Data.xlsx",sheet=4,na = "."))
corTNLCD <- cor(DataTNLCD, use = "pairwise.complete.obs", method =
"spearman")
corPTNLCD <- cor(DataPTNLCD, use = "pairwise.complete.obs", method =
"spearman")
NCTTNLvsPTNLCD <- NCT(corTNLCD, corPTNLCD, it = 10000, p.adjust.methods=
"bonferroni", test.edges=TRUE, edges="all", test.centrality=TRUE,
centrality=c("strength","betweenness"))
NCTTNLvsPTNLCD
NETWORK INVARIANCE TEST
Test statistic M: 0.7141979
p-value 0
GLOBAL STRENGTH INVARIANCE TEST
Global strength per group: 0 21.25911
Test statistic S: 21.25911
p-value 0
EDGE INVARIANCE TEST
Var1 Var2 p-value
26 Neutro% HLA-DR+%CD14+CD16+ 1
51 Neutro% HLA-DR+%CD14+CD16- 0
52 HLA-DR+%CD14+CD16+ HLA-DR+%CD14+CD16- 1
76 Neutro% HLA-DR+%CD14-CD16+ 1
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPVHTHL5BXTF6ZZCDB4WT3WKWHMBANCNFSM5WG2VDVQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Without correction, or with FDR based correction, I still see the same issue: No CorrectionNCTTNLvsPTNLCD <- NCT(corTNLCD, corPTNLCD, it = 10000, p.adjust.methods= "none", test.edges=TRUE, edges="all", test.centrality=TRUE, centrality=c("strength","betweenness")) NCTTNLvsPTNLCD NETWORK INVARIANCE TEST GLOBAL STRENGTH INVARIANCE TEST EDGE INVARIANCE TEST
26 Neutro% HLA-DR+%CD14+CD16+ 1 FDR CorrectionNCTTNLvsPTNLCD <- NCT(corTNLCD, corPTNLCD, it = 10000, p.adjust.methods= "BH", test.edges=TRUE, edges="all", test.centrality=TRUE, centrality=c("strength","betweenness")) NCTTNLvsPTNLCD NETWORK INVARIANCE TEST GLOBAL STRENGTH INVARIANCE TEST EDGE INVARIANCE TEST
26 Neutro% HLA-DR+%CD14+CD16+ 1 |
And just to be sure, you use the latest updated package from GitHub?
Op do 1 dec. 2022 om 19:14 schreef AlexCocker ***@***.***>
… Without correction, or with FDR based correction, I still see the same
issue:
No Correction
NCTTNLvsPTNLCD <- NCT(corTNLCD, corPTNLCD, it = 10000, p.adjust.methods=
"none", test.edges=TRUE, edges="all", test.centrality=TRUE,
centrality=c("strength","betweenness"))
NCTTNLvsPTNLCD
NETWORK INVARIANCE TEST
Test statistic M: 0.7141979
p-value 0
GLOBAL STRENGTH INVARIANCE TEST
Global strength per group: 0 21.25911
Test statistic S: 21.25911
p-value 0
EDGE INVARIANCE TEST
Var1 Var2 p-value
26 Neutro% HLA-DR+%CD14+CD16+ 1
51 Neutro% HLA-DR+%CD14+CD16- 0
52 HLA-DR+%CD14+CD16+ HLA-DR+%CD14+CD16- 1
76 Neutro% HLA-DR+%CD14-CD16+ 1
FDR Correction
NCTTNLvsPTNLCD <- NCT(corTNLCD, corPTNLCD, it = 10000, p.adjust.methods=
"BH", test.edges=TRUE, edges="all", test.centrality=TRUE,
centrality=c("strength","betweenness"))
NCTTNLvsPTNLCD
NETWORK INVARIANCE TEST
Test statistic M: 0.7141979
p-value 0
GLOBAL STRENGTH INVARIANCE TEST
Global strength per group: 0 21.25911
Test statistic S: 21.25911
p-value 0
EDGE INVARIANCE TEST
Var1 Var2 p-value
26 Neutro% HLA-DR+%CD14+CD16+ 1
51 Neutro% HLA-DR+%CD14+CD16- 0
52 HLA-DR+%CD14+CD16+ HLA-DR+%CD14+CD16- 1
76 Neutro% HLA-DR+%CD14-CD16+ 1
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPVHTDA2BB4WL6UEBSEYCLWLDTGTANCNFSM5WG2VDVQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This is the session info. I did update the NCT package before trying to run this but it may not have worked Session Info
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Hello Claudia,
I am finding that many of the p-values for edge or node centrality comparisons are whole numbers, either zeros or 1s. Is there a way to have the actual p-value in the out put and should I assume that p-value of zero means its < .001?
Thank you!
The text was updated successfully, but these errors were encountered: