Guest User

Untitled

a guest
Feb 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. install.packages("tweedie")
  2. library(tweedie)
  3. dtweedie(0,1.5,10,0.9, power = 1.5)
  4. # results in 0.0008873388
  5. dtweedie(1,1.5,10,0.9, power = 1.5)
  6. # results in 0.01428449
  7. ptweedie(0,1.5,10,0.9, power = 1.5)
  8. # results in 0.0008873388 <- this is the same as the 1st, awesome
  9. ptweedie(1,1.5,10,0.9, power = 1.5)
  10. # results in 0.009880705 <- this is even less than the pmf for 1, how???
Add Comment
Please, Sign In to add comment