Spatial correlation between two continuous variables
2
0
Entering edit mode
19 days ago
hossiny • 0

Hi,

Is there a metric that I can use to measure the spatial correlation between two continuous variables? I am aware of the Moran's I or cross-K function to test attraction or repulsion between two categorical features, but I am not aware of a metric to test the same for continuous variables (e.g., correlation between two gene expression)

thanks

spatial transcriptomics correlation • 346 views
ADD COMMENT
0
Entering edit mode
19 days ago
LChart 4.7k

Yes. You can just use correlation: cor(X_{ij}, Y_{ij}).

X <- matrix(rnorm(20), nrow=4)
Y <- X + 0.5 * matrix(rnorm(20), nrow=4)
cor(as.vector(X), as.vector(Y))
[1] 0.8943591
ADD COMMENT
0
Entering edit mode
19 days ago
dsull ★ 7.0k

Looks at bivariate metrics like Lee’s L

https://link.springer.com/article/10.1007/s101090100064

ADD COMMENT

Login before adding your answer.

Traffic: 1816 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6