vd_LL_vdm_screen {echoice2}R Documentation

Log-Likelihood for conjunctive-screening volumetric demand model

Description

Log-Likelihood for conjunctive-screening volumetric demand model

Usage

vd_LL_vdm_screen(draw, vd, fromdraw = 1)

Arguments

draw

A list, 'echoice2' draws object

vd

A tibble, tidy choice data (before dummy-coding)

fromdraw

An integer, from which draw onwards to compute LL (i.e., excl. burnin)

Value

N x Draws Matrix of log-Likelihood values

Examples

data(icecream)
#fit model
icecream_est <- icecream %>% filter(id<20) %>% vd_est_vdm_screen(R=10, keep=1, cores=2)
#compute likelihood for each subject in each draw
loglls<-vd_LL_vdm_screen(icecream_est, icecream%>% filter(id<20), fromdraw = 2)
dim(loglls)

[Package echoice2 version 0.2.4 Index]