single_cohort_ll: Log-likelihood for single-cohort data

Description Usage Arguments Value References

View source: R/sBGmodel.R

Description

single_cohort_ll computes log-likelihood function for single-cohort data.

Usage

1
single_cohort_ll(df_single_cohort_data, params)

Arguments

df_single_cohort_data

a data.frame containing number of lost and survived_customers per period. Required columns: columns 'period', 'lost_customers' and 'survived_customers'.

params

a list of parameters alpha, beta to calculate log-likelihood function for.

Value

Log-likelihood based on single cohort data and given input parameters.

References

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.558.935&rep=rep1&type=pdf, formula B3.


runtastic/sBGmodel documentation built on Nov. 5, 2019, 4:21 a.m.