Skip to content

Commit

Permalink
Merge pull request #6 from dvklopfenstein/dvk
Browse files Browse the repository at this point in the history
William -> Will in pdfs
  • Loading branch information
dvklopfenstein authored Nov 8, 2021
2 parents 45447bf + 401ae7d commit 69c4d59
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
Binary file modified doc/paper/JRSM_1456_iCite_main.pdf
Binary file not shown.
Binary file modified doc/paper/JRSM_1456_iCite_supp1_CitedByN.pdf
Binary file not shown.
Binary file modified doc/paper/JRSM_1456_iCite_supp2_PMcontents.pdf
Binary file not shown.
Binary file modified doc/paper/JRSM_1456_iCite_supp3_GS.pdf
Binary file not shown.
9 changes: 9 additions & 0 deletions doc/paper/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
supp1_figs:
rm -f figs_supp1_CitedByN*.pdf
pdftools remove -o figs_supp1_CitedByN_tmp.pdf JRSM_1456_iCite_supp1_CitedByN.pdf 1-7
pdftools remove -o figs_supp1_CitedByN.pdf figs_supp1_CitedByN_tmp.pdf 18

clean:
rm -f figs_supp1_CitedByN*.pdf

# Copyright (C) 2021-present, DV Klopfenstein. All rights reserved.
14 changes: 12 additions & 2 deletions src/bin/plt_guassian_nihperc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import scipy.stats as stats
from pmidcite.plot.nih_perc import PltNihVals
## from pmidcite.cfg import Cfg
from pmidcite.cfg import Cfg

MU = 0
VARIANCE = 1
Expand All @@ -27,9 +28,18 @@ def main():
'../bibliometrics/doc/nih_perc_groups.pdf',
]

# 1a) Get percentile group_mins along SD lines
# percentiles: [2.28, 15.87, 84.13, 97.72]
vlines = [-3, -2, -1, 1, 2, 3]
probabilities = [round(stats.norm.cdf(z)*100, 2) for z in vlines[1:-1]]
pltr = PltNihVals(probabilities)
percentiles = [round(stats.norm.cdf(z)*100, 2) for z in vlines[1:-1]]

# 1b) Get percentile group_mins from Cfg
cfg = Cfg()
nih_grouper = cfg.get_nihgrouper()
percentiles = nih_grouper.get_list()

# Plot Gaussian curve
pltr = PltNihVals(percentiles)
## pltr = PltNihVals(Cfg().get_nihgrouper().get_list())
pltr.prt_vals()

Expand Down

0 comments on commit 69c4d59

Please sign in to comment.