Learn R Programming

hbmem (version 0.3-3)

dpsdPosLogLike: function dpsdPosLogLike

Description

Computes log likelihood for DPSD model with positive d'

Usage

dpsdPosLogLike(R, NN, NS, I, JN, JS, K, dat, cond,
Scond, sub, item,lag, blockN, blockD, blockR, crit)

Arguments

R

Total number of trials.

NN

Number of new-item conditions.

NS

Number of studied-item conditions.

I

Number of subjects.

JN

Number of items in new condition.

JS

Number of items in studied condition.

K

Number of response options.

dat

Vector of responses, ranging from 0:(K-1).

cond

Vector of condition index.

Scond

Vector of new-studied condition index; 0=new, 1=studied.

sub

Vector of subject index, starting at 0 with no missing subject numbers.

item

Vector of item index, starting at 0 with no missing item numbers.

lag

Vector of lag index.

blockN

Block of parameters for new-item means.

blockD

Block of parameters for dprime means.

blockR

Block of parameters for recollection values.

crit

VECTOR of criteria including -Inf and Inf for top and bottom critieria, respectively. Vector contains the (K+1) criteria for the first subjects, followed by those for the second subject, etc.