Skip to content

Documentation for the BG/NBD model might be confusing scale and rate parameter for alpha value? #174

@kaybenleroll

Description

@kaybenleroll

Hi,

Love the package, but I am a bit confused by the docs for the BG/NBD model in terms of the parameterisation of the Gamma distribution for the purchase rate.

The documentation says it has shape parameter r and scale parameter alpha, but then says the mean of this is r / alpha. However, this suggests it is the inverse-scale (i.e. the rate).

This would match data I have as well, based on using rgamma() to randomly generate values to mimic the data. Should we interpret r and alpha as the shape and rate instead?

I had a look through the code to check the log-likelihood calculation, but my C++ templating is not good enough to quite follow it.

My apologies if I have misunderstood this but I figured it was worth asking and happy to help out in discussing this further if my point is not clear - keep up the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions