Skip to content

Commit f0e76b9

Browse files
committed
all done revision 2
1 parent 1e51449 commit f0e76b9

16 files changed

+44
-13
lines changed

PACA_Article.pdf

197 KB
Binary file not shown.
27.8 KB
Binary file not shown.

figures/Graphical_abstract.png

717 KB
Loading

scripts/DescriptiveAnalysis.ipynb

Lines changed: 36 additions & 7 deletions
Large diffs are not rendered by default.

scripts/MixedEffectsModelling.R

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,19 +471,21 @@ all_models_complexity <- list(
471471
mean_pattern <- aggregate(data, list(data$pattern), mean)
472472
mean_pattern_bydis <- mean_pattern[order(mean_pattern$disorder), ]
473473

474-
# top 15 elements of mean_pattern_bydisorder
475-
high_dis <- tail(mean_pattern_bydis, 15)
474+
# top 10% elements of mean_pattern_bydisorder
475+
num_dis <- 22
476+
high_dis <- tail(mean_pattern_bydis, num_dis)
476477
# bottom 15 elements of mean_pattern_dis
477-
low_dis <- head(mean_pattern_bydis, 15)
478+
low_dis <- head(mean_pattern_bydis, num_dis)
478479

479480
high_dis_by_comp <- high_dis[order(high_dis$complexity_rating), ]
480481
low_dis_by_comp <- low_dis[order(low_dis$complexity_rating), ]
481-
482+
mid_start <- (num_dis - 2) %/% 2 + 1
483+
mid_end <- mid_start + 2
482484
high_dis_low_comp <- head(high_dis_by_comp, 3)
483-
high_dis_mid_comp <- high_dis_by_comp[7:9,]
485+
high_dis_mid_comp <- high_dis_by_comp[mid_start:mid_end,]
484486
high_dis_high_comp <- tail(high_dis_by_comp, 3)
485487
low_dis_low_comp <- head(low_dis_by_comp, 3)
486-
low_dis_mid_comp <- low_dis_by_comp[7:9,]
488+
low_dis_mid_comp <- low_dis_by_comp[mid_start:mid_end,]
487489
low_dis_high_comp <- tail(low_dis_by_comp, 3)
488490

489491
print(high_dis_low_comp$Group.1)
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)