Advances in shared frailty models with application to twin data