ch.pHVOfit | R Documentation |
This function fits p(HVO) as a non-linear exponential decay function of an x variable (often overlap). It forces the first point to equal 1 and the last point is .5 on the y-axis. It outputs the fit of the function and the r_square.
ch.pHVOfit(x, y, grp = NULL, useTwoParameterModel = FALSE)
x |
the x variable for the x-axis (often overlap). |
y |
the y variable for the y-axis (often p(hit)). |
grp |
the grouping variable that identifies those stimuli whose value are above the reference distribution and those that are below the reference distribution. When this variable is included and useTwoParameterModel is set to TRUE, then the alpha parameter will be fit so it is symetric above and below 0.5 for refHVO and refLVO. DEFAULT = NULL (the grouping variable is ignored) |
useTwoParameterModel |
A boolean that specifies whether to use a two parameter model. If this is set to TRUE, then this function will fit a model whereby the rightmost point (overlap = 1.0) is not fixed at p(HVO) = 0.5. DEFAULT = FALSE. |
a list of the fit, r2 from the nls .
ch.pHVOfit (x,y, grp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.