Learn R Programming

modelfree (version 1.0-2)

deviance2: Deviance between data and fitted function

Description

Calculates deviance for data Y and fitted values of the psychometric function f

Usage

deviance2(r, m, pfit)

Arguments

r
number of successes in points x
m
number of trials in points x
pfit
fitted values

Value

  • DDeviance

Examples

Run this code
data( "01_Miranda" )
h = 0.2959
fit <- locglmfit( example01$x, example01$r, example01$m, example01$x, h )
Dev <- deviance2( example01$r, example01$m, fit$fitval )

Run the code above in your browser using DataLab