data(flu_weight)
# The linear regression below tests whether the intrapair differences in flu
# presence (binary outcome) of a given twin-pair are predicted by its
# differences in weight (in kilograms).
summary(unique_env_logistic <- env_dif_logistic(FluNow ~ Weight, data=flu_weight))
Run the code above in your browser using DataLab