I have a dataset where eyes are nested within subjects. I would like to know whether the proportions for var1 and var2 are different, such that a p<0.05 would indicate a significant difference. (thus null hypothesis is that var1=var2). If the data were not nested, I would run
prtest var1=var2
However, the p-value from prtest does not account for the fact that some subjects have data on both eyes.
Is there a way to do a bootstrap to get a 95CI and pvalue for prtest that would account for the fact that subjects sometimes have both eyes in the study, or is there another statistical test one can use to look at whether there is a significant difference between var1 and var2 while accounting for the multilevel nature of the data?
I realize that a GEE or mixed model would be able to account for the multilevel nature of the data but these would test a different hypothesis that var 1 is associated with var 2, so p<0.05 indicates they are significantly associated. However this isn't really asking the same question as the one which we are trying to answer which is whether the 2 variables are significantly different.
thank you for your help.
prtest var1=var2
However, the p-value from prtest does not account for the fact that some subjects have data on both eyes.
Is there a way to do a bootstrap to get a 95CI and pvalue for prtest that would account for the fact that subjects sometimes have both eyes in the study, or is there another statistical test one can use to look at whether there is a significant difference between var1 and var2 while accounting for the multilevel nature of the data?
I realize that a GEE or mixed model would be able to account for the multilevel nature of the data but these would test a different hypothesis that var 1 is associated with var 2, so p<0.05 indicates they are significantly associated. However this isn't really asking the same question as the one which we are trying to answer which is whether the 2 variables are significantly different.
thank you for your help.
Comment