Hello All,
I am performing a beta regression using the betareg function and comparing their information criteria. I do not have paired data. I want to restrict observations based on a variable not included within the model so that I have the same number of observations when comparing AIC between models. Is this possible? I decided to post after reading this post (excluding observations using restrict observation command - Statalist).
Here is an example of my code, which does not restrict observations based on "Wildlife_ESBL" for the first model, but it does for the second. I presume this is because Wildlife_ESBL is not in the first model.
Please let me know if this is unclear and I will try to explain further. Best Regards, Macon
I am performing a beta regression using the betareg function and comparing their information criteria. I do not have paired data. I want to restrict observations based on a variable not included within the model so that I have the same number of observations when comparing AIC between models. Is this possible? I decided to post after reading this post (excluding observations using restrict observation command - Statalist).
Here is an example of my code, which does not restrict observations based on "Wildlife_ESBL" for the first model, but it does for the second. I presume this is because Wildlife_ESBL is not in the first model.
Code:
betareg Adult_Res_ESBL SomeAccess MaxAccess FarmLivestock Import_YN Herd_Size if County != "A" & Wildlife_ESBL != 0
Code:
betareg Adult_Res_ESBL Herd_Size H_CDL DairyKernMEAN BeefKernMEAN Wildlife_ESBL if County != "A" & Wildlife_ESBL != 0
Comment