cll: log-likelihood of each component

View source: R/likelihoods.R

cllR Documentation

log-likelihood of each component

Description

log-likelihood of each component

Usage

cll(par, Ntot, ns1, nu1, ns0, nu0)

Arguments

par

vector of parameters.

Ntot

matrix integer vector of total trials. One row per subject. Should have four columns named "ns1" "ns0" "nu1" and "nu0"

ns1

numeric integer vector of successes in condition 1 treatment s.

nu1

numeric integer vector of successes in condition 1 treatment u.

ns0

numeric integer vector of successes in condition 0 treatment s.

nu0

numeric integer vector of successes in condition 0 treatment u.

Details

Calcualtes the log-likelihood for each observation at each model component

See Also

bbll MIMOSA2


RGLab/MIMOSA2 documentation built on Aug. 15, 2024, 8:10 a.m.