MATLAB function for Shift Function plots?

Dear experts,
Is there any way to produce a shift function plot in MATLAB?
For example, as in the following R function:
Publish_online2.JPG
or:
Publish_online.JPG
(taken from: Alnæs, Dag, et al. "Brain heterogeneity in schizophrenia and its association with polygenic risk." JAMA psychiatry (2019).‏ )

댓글 수: 3

Adam Danz
Adam Danz 2019년 12월 19일
The link you shared contains a link to the source code (github). If you wanted to reporduce those figures you could start by looking at the source code and converting it to Matlab code.
At first glance, it looks like the lower plot in each example shows the lag from a cross correlation
Johnson
Johnson 2019년 12월 20일
@Adam Danz:
Thanks for your answer.
I saw the link contains the source code in R, but was still wondering whether MATLAB has some function that produces similar figures (without me having to understand an R code).
I am not sure if the lower plot presents the lag from a cross correlation. I think it's just showing the difference in densities between the two groups for every quantile of data. What do you think?
Thanks again
Johnson
Johnson 2019년 12월 20일
Found some details on MATLAB here:
If someone can provide further details, or suggestions for available MATLAB functions - please let me know. Thanks!

댓글을 달려면 로그인하십시오.

 채택된 답변

Johnson
Johnson 2019년 12월 20일

0 개 추천

I found the following MATLAB package:
Still not sure if it works, but if it does, I will close the thread and accept this as an answer. Thanks everyone!

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2019년 12월 19일

답변:

2019년 12월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by