Learn R Programming

modelfree (version 1.0-2)

bandwidth_plugin: Plug in estimation of Bandwidth

Description

Calculates an estimate of the AMISE optimal bandwidth for the local polynomial estimator of a psychometric function.

Usage

bandwidth_plugin( r, m, x, link = c( "logit" ), guessing = 0, lapsing = 0, K = 2, p = 1, ker = c( "dnorm" ) )

Arguments

r
number of successes in points x
m
number of trials in points x
x
stimulus levels
link
link function; default is "logit"
guessing
guessing rate; default is 0
lapsing
lapsing rate; default is 0
K
power parameter for Weibull and reverse Weibull link; default is 2
p
order of the polynomial; default is 1
ker
kernel function for weights; default "dnorm"

Value

  • hplug-in bandwidth (on eta-scale)

Examples

Run this code
data("01_Miranda")
h<-bandwidth_plugin( example01$r, example01$m, example01$x )

Run the code above in your browser using DataLab