TABLE OF CONTENTS


CmakeLikelihood/LikelihoodParamFrailty [ Functions ]

NAME

    LikelihoodParamFrailty --- likelihood of frailty parametric parameter

FUNCTION

Compute loglikelihood of parameters for the parametric component of the frailty curve. See also mklik.param.frail.

SYNOPSIS

1810 static inline double LikelihoodParamFrailty(curveP hazard, curveP frailty, regressionP regression)

INPUTS

    hazard        CCurve for the hazard
    frailty       CCurve for the frailty
    regression    CRegression structure

OUTPUTS

    lik    loglikelihood of frailty->ParamPar

SOURCE

1814 {
1815     // sum of log-frailties
1816     double lik = LikelihoodFrailtyLogSum(frailty->nx, frailty->ParamY);
1817 
1818     int c1=1;
1819     // Gaussian prior for parameters
1820     lik -= pow(F77_CALL(dnrm2)(&(frailty->np), frailty->ParamPar, &c1),2)/(2*frailty->ParamPriorvar[0]);
1821     return lik;
1822 }