Correlation Analysis
摘要
This chapter focuses on the correlation analysis of observation data from 837 surface meteorological stations in China in 2020. Both the cor()and cor.test() functions, included in R’s base package, are employed to meet our analytical requirements effectively. The rcorr() function is employed to derive the p-value matrix of the correlation matrix. Additionally, the corr.test() function is utilized to rapidly generate a pairwise correlation matrix for an entire dataset, complete with p-values and confidence intervals.