turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- zero-inflated poisson distribution in a generalize...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Jul 17, 2013 3:08 AM
(1334 views)

2 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Jul 19, 2013 4:50 AM
(914 views)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Aug 2, 2013 12:50 PM
(914 views)

Clay Barker has a nice ZIPoisson example on the JMP File exchange..

// set up the ZIP negative log likelihood with the starting values defined above

Exform = expr(

ll << set formula(Parameter(

{p = expr(pstart), lambda = expr(lstart)},

If( :Y == 0,

-Log( p + (1 - p) * Exp( -lambda ) ),

-Log(

(1 - p) * ((Exp( -lambda ) * lambda ^ :Y) /

Factorial( :Y ))

)

)

)));

// now plug the starting values into the negative log likelihood column

eval(eval Expr(exform));

// use nonlinear to minimize the negative log likelihood, which is equivalent to maximizing the likelihood

nl = Nonlinear(

Loss( :NegLogLik ),

Loss is Neg LogLikelihood( 1 ),

Newton,

Finish

);