calculateReliability function

calculateReliability: determine the reliability and SEM per Type