2.1.24.5.2.1 ocmath_lrt


Description

output logLike value for 2-paramete and 2-paramete Weibull

Syntax

double ocmath_lrt(double dConstrainedLogLikelihood, double dUnconstrainedLoglikelihood, int df)

Parameters

dConstrainedLogLikelihood
[input]log likelihood of constrained model, e.g. 2-parameter Weibull
dUnconstrainedLoglikelihood
[input]log likelihood of unconstrained model, e.g. 3-parameter Weibull
df
[input]difference of number of parameters between two modesl, wbl vs wbl3: df = 1

Return

return P-value for LRTest. If return value < 0.05, 3-parameter Weibull model is significantly better than Weibull model for input data.

Examples

Remark

See Also

Header to Include

origin.h

Reference