logo

Model-free estimation of a psychometric function

binom_weib

Back to Functions

[b,K] = binom_weib(r,m,x,p,initK,guessing,lapsing)

Maximum likelihood estimates of the parameters of the Weibull model for the psychometric function.

Input:

r: number of successes at points x

m: number of trials at points x

x: stimulus levels

Optional input:

p: degree of the polynomial; default is 1

initK: initial value for K (power parameter in Weibull model); default is 2

guessing: guessing rate; default is 0

lapsing: lapsing rate; default is 0

Output:

b: vector of estimated coefficients for the linear part

K: estimate of the power parameter in the Weibull model

Back to Functions