Correlation analysis for proportions via updating and resampling