deviance2: Deviance between data and fitted function

Description Usage Arguments Value Examples

Description

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

Usage

1
deviance2(r, m, pfit)

Arguments

r

number of successes in points x

m

number of trials in points x

pfit

fitted values

Value

D

Deviance

Examples

1
2
3
4
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 )

Example output

Loading required package: PolynomF
Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

modelfree documentation built on May 2, 2019, 6:07 p.m.