marginal_rxx function

Function to calculate the marginal reliability