singlelevel {sdtalt}R Documentation

Using a GLM with a single participant's data

Description

Called by mlmsdt when only a single unique subject number is in the data file. It is assumed this is not called directly by users (use glm instead).

Usage

singlelevel(isold, sold, covs = {
}, lk = "logit", int = FALSE, modify = TRUE)

Arguments

isold whether item is old or new
sold whether person says old or new
covs list of covariates
lk link function, "probit" or "logit" usually
int interactions between covariates
modify centering covariates and -5, +.5 coding for isold

Value

a glm.object is returned and values for d' or lnOR printed to screen

Author(s)

Daniel. B. Wright

Examples

x <- runif(100,0,1)
singlelevel(rbinom(100,1,x),rbinom(100,1,x))

[Package sdtalt version 0.1-0.1 Index]