Learn R Programming

FREG (version 1.1)

loglik: Log-likelihood function

Description

Log-likelihood function

Usage

loglik(x, y, beta)

Arguments

x

a design matrix which is a product of inner product of basis functions and basis coefficients of functional covariate X

y

a response variable of class factor

beta

initial values for beta regression coefficients and intercepts

Value

ll

a value of the log-likelihood function at the estimated optimum