Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. hlsereg <- svyglm(formula = HLSEPALLACRESFIX ~ HLSE_ACRE, sbdiv, family = quasipoisson)
  2.  
  3. Survey design:
  4. svydesign(id = ~1, weights = ~spwgtdividedby3, data = sportsbind)
  5.  
  6. Coefficients:
  7. Estimate Std. Error t value Pr(>|t|)
  8. (Intercept) 5.489465 0.414979 13.228 <2e-16 ***
  9. HLSE_ACRE -0.002744 0.001118 -2.454 0.0144 *
  10. ---
  11. Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
  12.  
  13. (Dispersion parameter for quasipoisson family taken to be 2.601914e+15)
  14.  
  15. Number of Fisher Scoring iterations: 12
  16.  
  17. acreaxis <- seq(0,2000,.1)
  18. hlse = predict(hlsereg, list(HLSE_ACRE = acreaxis))
  19. plot(jitter(sportsbind$HLSE_ACRE, amount = 2.5), jitter(sportsbind$HLSEPALLACRESFIX),pch = 16, xlab = "Acres", ylab = "Price per person per acre", xlim = c(0, 350), ylim = c(0,35), col=alpha("red",.35), font = 2, font.lab = 2)
  20. lines(acreaxis, hlse, lwd=4, col = "red")
  21.  
  22. hlse = predict(hlsereg, list(HLSE_ACRE = acreaxis), type = "response")
  23. plot(jitter(sportsbind$HLSE_ACRE, amount = 2.5), jitter(sportsbind$HLSEPALLACRESFIX),pch = 16, xlab = "Acres", ylab = "Price per person per acre", xlim = c(0, 350), ylim = c(0,400), col=alpha("red"), font = 2, font.lab = 2)
  24. lines(acreaxis, hlse, lwd=4, col = "black")
  25.  
  26. hlsereg.nb <- glm.nb(HLSEPALLACRESFIX~HLSE_ACRE,data = model.frame(sbdiv.scaledweights), start = c(5.45, -.003))
  27. Error: no valid set of coefficients has been found: please supply starting values
  28. In addition: Warning message:
  29. glm.fit: fitted rates numerically 0 occurred
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement