Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. model.beta <- betareg(pctrans ~ tree, data=BT.data, link="logit")
  2. modelnull.beta <- betareg(pctrans ~ tree, data=BT.data, link="logit")
  3. lrtest(model1.beta, modelnull.beta)
  4.  
  5. Call:
  6. betareg(formula = pctrans ~ tree, data = BT.data, link = "logit")
  7.  
  8. Standardized weighted residuals 2:
  9. Min 1Q Median 3Q Max
  10. -2.7716 -0.5800 0.0472 0.5351 3.5109
  11.  
  12. Coefficients (mean model with logit link):
  13. Estimate Std. Error z value Pr(>|z|)
  14. (Intercept) -1.111504 0.069191 -16.064 < 2e-16 ***
  15. treeBC3F3 -0.050940 0.095889 -0.531 0.59525
  16. treeD54 -0.279927 0.096470 -2.902 0.00371 **
  17. treeD58 -0.034000 0.095716 -0.355 0.72242
  18. treeEllis1 -0.006764 0.095175 -0.071 0.94334
  19. treeQing 0.785992 0.094003 8.361 < 2e-16 ***
  20.  
  21. Phi coefficients (precision model with identity link):
  22. Estimate Std. Error z value Pr(>|z|)
  23. (phi) 3.5549 0.1352 26.29 <2e-16 ***
  24. ---
  25. Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
  26.  
  27. Type of estimator: ML (maximum likelihood)
  28. Log-likelihood: 529.8 on 7 Df
  29. Pseudo R-squared: 0.1105
  30. Number of iterations: 20 (BFGS) + 2 (Fisher scoring)
  31.  
  32. Likelihood ratio test
  33.  
  34. Model 1: pctrans ~ tree
  35. Model 2: pctrans ~ 1
  36. #Df LogLik Df Chisq Pr(>Chisq)
  37. 1 7 529.82
  38. 2 2 460.70 -5 138.25 < 2.2e-16 ***
  39.  
  40. beta.glm <- glm(pctrans ~ tree, data=BT.data, family=quasibinomial)
  41.  
  42. Call:
  43. glm(formula = pctrans ~ tree, family = quasibinomial, data = BT.data)
  44.  
  45. Deviance Residuals:
  46. Min 1Q Median 3Q Max
  47. -0.94474 -0.38492 -0.08785 0.22725 1.80291
  48.  
  49. Coefficients:
  50. Estimate Std. Error t value Pr(>|t|)
  51. (Intercept) -1.22601 0.07643 -16.042 < 2e-16 ***
  52. treeBC3F3 0.06826 0.10660 0.640 0.52205
  53. treeD54 -0.33864 0.11312 -2.994 0.00281 **
  54. treeD58 -0.19878 0.11062 -1.797 0.07260 .
  55. treeEllis1 -0.07763 0.10808 -0.718 0.47276
  56. treeQing 0.88596 0.09978 8.879 < 2e-16 ***
  57. ---
  58. Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
  59.  
  60. (Dispersion parameter for quasibinomial family taken to be 0.2069603)
  61.  
  62. Null deviance: 307.54 on 1240 degrees of freedom
  63. Residual deviance: 267.59 on 1235 degrees of freedom
  64. AIC: NA
  65.  
  66. Number of Fisher Scoring iterations: 4
  67.  
  68. Analysis of Deviance Table
  69. Model: quasibinomial, link: logit
  70. Response: pctrans
  71. Terms added sequentially (first to last)
  72.  
  73. Df Deviance Resid. Df Resid. Dev Pr(>Chi)
  74. NULL 1240 307.54
  75. tree 5 39.951 1235 267.59 < 2.2e-16 ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement