create_psy_fun: Creates the psychometric function 'create_psy_fun' creates...

View source: R/create_psy_fun.R

create_psy_funR Documentation

Creates the psychometric function create_psy_fun creates the psychometric function

Description

Creates the psychometric function create_psy_fun creates the psychometric function

Usage

create_psy_fun(psy_fun, guess, lapses)

Arguments

psy_fun

The shape of the function without guesses and lapses.

guess

Value indicating the guess rate (leftward asymptote) γ (default is 0). If TRUE, the guess rate is estimated as the i + 1 parameter where i corresponds to the number of parameters of fun. If, for example, fun is a predefined shape with parameters p1 and p2, then the guess rate corresponds to parameter p3.

lapses

Value indicating the lapse rate (rightward asymptote) λ (default is 0). If TRUE, the lapse rate is estimated as the i + 1 parameter where i corresponds to the number of parameters of fun plus one if the guess rate is estimated. If, for example, fun is a predefined shape with parameters p1 and p2, then the lapse rate corresponds to parameter p3. If the guess rate is also estimated, p3 will be the guess rate and p4 the lapse rate.


danilinares/quickpsy documentation built on Feb. 13, 2023, 8:44 p.m.