Multistage analysis in astrostatistics