I am using betareg in R to assess the relationship between percentage of time covered with baseline characteristics such as age and sex. The outcome measure is the percentage of time covered (PTC) by a test: each tests cover a participant for 6 months. If a participant had several tests during their time in the study, their total time covered is the sum of all times covered (TC). PTC is TC divided by their total time in the study(TT). Since TT is different between participant; ranging from 6 months to few years, I use weights to give more emphasis on those with longer time in the study. I examined two options for weights: first option is TT and second option is TT/SUM(TT): for each participant their TT divide by the sum of TT for all participants. So essentially second option is first option divided by a constant value (SUM(TT)).
Option 1:
Call:
betareg(formula = PTC ~ Sex + Age, data = Test, weights =
Test$TT, link = "logit")
Standardized weighted residuals 2:
Min 1Q Median 3Q Max
-10.9333 -3.1518 -0.0751 4.8051 18.9835
Coefficients (mean model with logit link):
Estimate Std. Error z value Pr(>|z|)
(Intercept) -0.1771340 0.0281138 -6.301 2.96e-10 ***
SexFemale -0.0323812 0.0114639 -2.825 0.00473 **
Age 0.0169218 0.0004632 36.532 < 2e-16 ***
Phi coefficients (precision model with identity link):
Estimate Std. Error z value Pr(>|z|)
(phi) 1.94438 0.01234 157.5 <2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Type of estimator: ML (maximum likelihood)
Log-likelihood: 1.267e+04 on 4 Df
Pseudo R-squared: 0.01633
Number of iterations: 17 (BFGS) + 1 (Fisher scoring)
Option 2:
Call:
betareg(formula = PTC ~ Sex + Age, data = Test, weights =
Test$TT/T, link = "logit")
Standardized weighted residuals 2:
Min 1Q Median 3Q Max
-0.0548 -0.0158 -0.0004 0.0241 0.0952
Coefficients (mean model with logit link):
Estimate Std. Error z value Pr(>|z|)
(Intercept) -0.17713 5.60469 -0.032 0.975
SexFemale -0.03238 2.28541 -0.014 0.989
Age 0.01692 0.09234 0.183 0.855
Phi coefficients (precision model with identity link):
Estimate Std. Error z value Pr(>|z|)
(phi) 1.944 2.461 0.79 0.429
Type of estimator: ML (maximum likelihood)
Log-likelihood: 0.3188 on 4 Df
Pseudo R-squared: 0.01633
Number of iterations: 28 (BFGS) + 3 (Fisher scoring)
Warning message:
In betareg.fit(X, Y, Z, weights, offset, link, link.phi, type,
control) :
no valid starting value for precision parameter found, using 1
instead
Why multiplying weight by a constant make the results so different? Which one is correct?
Edit: I now understand that rescaling weights, rescales variances and therefore p-values. My question now is which option is correct? should I standardise the weights (Option 2)?