Skip to content
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

Update stats plots, add longitudinal sample size calculation #98

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
fdd81a1
update plots to match manuscript
PaulBautin Jan 25, 2021
a1a3d3c
add:
PaulBautin Mar 11, 2021
d48a7b8
- update README for longitudinal study sample size
PaulBautin Mar 11, 2021
645dcc1
update ref in csa_rescale_stat for sample size computation
PaulBautin Mar 11, 2021
f4f5c4b
correct rescale_estimated_subject in README
PaulBautin Mar 11, 2021
79e1269
Create output folder if does not exist
jcohenadad Mar 17, 2021
08b1d01
change std to var in sample size
PaulBautin Mar 17, 2021
c0f0596
Added TODOs
jcohenadad Mar 17, 2021
deb15c6
Merge remote-tracking branch 'origin/graph' into graph
PaulBautin Mar 18, 2021
de28fc3
- correct sample size formula
PaulBautin Mar 18, 2021
f72e107
- correct diff formula by integrating transformation variability (bef…
PaulBautin May 13, 2021
d39cc25
- correct sample size formula
PaulBautin May 13, 2021
ab54398
- remove replacement in diff formula for df_sub
PaulBautin May 13, 2021
a67f773
- use absolute for mean diff and make difference subject dependant
PaulBautin May 13, 2021
ab1eae1
- remove diff abs because useless (SD uses squared difference anyway)
PaulBautin May 13, 2021
7874439
- remove diff abs because useless
PaulBautin May 13, 2021
e599ab7
- change formula for sample size
PaulBautin May 20, 2021
05d7fcd
- Monte Carlo simulation for between group sample size computation
PaulBautin May 20, 2021
f50f18a
- add comments for sample size function
PaulBautin May 20, 2021
be0ebb4
- improve comments for formula var and var_diff
PaulBautin May 21, 2021
31d2ab1
- limit usage of rescale_area to plots
PaulBautin May 21, 2021
02c47e7
- remove rounding before boxplots for csa and atrophy
PaulBautin May 21, 2021
bb990c8
- scatter colorbar takes discrete values
PaulBautin May 21, 2021
7676fcb
- compute sample size using 500 itterations
PaulBautin May 27, 2021
08ff3a5
- update sample size plot to match article
PaulBautin May 27, 2021
d35b6f2
- remove ceil sur chaque calcul de sample size
PaulBautin May 31, 2021
120fa41
add egg info
sandrinebedard Jul 25, 2024
773c191
change sct_deepseg for sct_deepseg_sc
sandrinebedard Jul 25, 2024
e745a3c
change disc file label
sandrinebedard Aug 1, 2024
25524fd
add fix for qform sfrom and fix typo disc labels
sandrinebedard Aug 6, 2024
656e174
change for sct
sandrinebedard Aug 8, 2024
c849a24
modify for python 3.9 compatibility
sandrinebedard Aug 13, 2024
9511c21
setup for compute canada
sandrinebedard Aug 13, 2024
96c1b1d
rsync disc file
sandrinebedard Aug 14, 2024
08bfc54
rm qc from sct_deepseg
sandrinebedard Aug 16, 2024
6e36cbf
fix missing eextension
sandrinebedard Aug 16, 2024
a5942d4
remove extra QC
sandrinebedard Aug 16, 2024
28b8c78
remove one qc report
sandrinebedard Aug 19, 2024
5d37e0a
remove all QC reports
sandrinebedard Aug 19, 2024
bc3e882
remove all qc reports
sandrinebedard Aug 19, 2024
0b40fb6
add logging
sandrinebedard Aug 27, 2024
d7c5bf9
Merge branch 'sb/update-for-ca-python3.9' into graph
sandrinebedard Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ Per-subject stat: Panda dataframe `df_sub`:
- intra-subject MEAN: MEAN[CSA(sI, rX, :)] --> MEAN_intra(sI, rX): `df_sub['mean']`
- intra-subject STD: STD[CSA(sI, rX, :)] --> STD_intra(sI, rX): `df_sub['std']`
- intra-subject COV: STD[CSA(sI, rX, :)] / MEAN[CSA(sI, rX, :)] --> COV_intra(sI, rX): `df_sub['cov']`
- rescale_estimated_subject MEAN: MEAN[CSA(sI, rX, :) / CSA(sI, 1, :)] --> MEAN_rescale_estimated_subject(sI, rX): `df_sub['rescale_estimated']`
- rescale_estimated_subject MEAN: MEAN[ CSA(sI, rX, :) ] / MEAN[ CSA(sI, 1, :) ] --> MEAN_rescale_estimated_subject(sI, rX): `df_sub['rescale_estimated']`
- intra-subject error MEAN: MEAN[CSA(sI, rX, :)] - (rX^2 * MEAN[CSA(sI, 1, :)]) --> MEAN_error_intra(sI, rX): `df_sub['error']`
- intra-subject error in percentage MEAN: [MEAN[CSA(sI, rX, :)] - (rX^2 * MEAN[CSA(sI, 1, :)])] / MEAN[CSA(sI, rX, :)] --> MEAN_error_intra_perc(sI, rX): `df_sub['perc_error']`
- intra-subject difference MEAN: [MEAN[CSA(sI, 1, :)] - (rX^2 * MEAN[CSA(sI, rX, :)])] --> MEAN_diff(sI, rX): `df_sub['diff']`

Across-subject stats: Panda dataframe `df_rescale`
- intra-subject STD: MEAN[STD_intra(:, rX)] --> STD_intra(rX): `df_rescale['std_intra']`
Expand All @@ -81,9 +82,11 @@ Across-subject stats: Panda dataframe `df_rescale`
- rescale_estimated (across subjects) STD: STD[MEAN_rescale_estimated_subject(:, rX)] --> STD_rescale_estimated(rX): `df_rescale['std_rescale_estimated']`
- error in percentage (across subjects) MEAN: MEAN[MEAN_error_intra(:, rX)]
- error in percentage (across subjects) STD: STD[MEAN_error_intra(:, rX)]
- intra-subject difference STD: STD[MEAN_diff(:, rX)]

Power analysis:
- sample size: [(z(uncertainty) + z(power))^2 * (2 * STD[MEAN(:, rX)]^2)] / [MEAN[CSA(sI, 1, :)] - MEAN[CSA(sI, rX, :)]]
- sample size for a between subject study: [(z(uncertainty) + z(power))^2 * (2 * STD[MEAN(:, rX)]^2)] / [MEAN[CSA(sI, 1, :)] - MEAN[CSA(sI, rX, :)]]
- sample size for a within subject study: [(z(uncertainty) + z(power))^2 * (STD[MEAN_diff(:, rX)]^2)] / [MEAN[CSA(sI, 1, :)] - MEAN[CSA(sI, rX, :)]]

Plot results:
- STD_intersub
Expand Down
Loading