quickpsy_ {quickpsy} | R Documentation |
Fits psychometric functions
Description
quickpsy_
is the standard evaluation SE function associated
to the non-standard evaluation NSE function quickpsy
.
SE functions can be more easily called from other functions.
In SE functions, you need to quote the names of the variables.
Usage
quickpsy_(d, x = "x", k = "k", n = "n", grouping, random, within, between,
xmin = NULL, xmax = NULL, log = FALSE, fun = "cum_normal_fun",
parini = NULL, guess = 0, lapses = 0, prob = NULL, thresholds = T,
bootstrap = "parametric", B = 100, ci = 0.95, optimization = "optim")
Arguments
d |
Data frame with the results of a Yes-No experiment to fit. It should have a tidy form in which each column corresponds to a variable and each row is an observation. |
x |
Name of the explanatory variable. |
k |
Name of the response variable. The response variable could be the number of trials in which a yes-type response was given or a vector of 0s (or -1s; no-type response) and 1s (yes-type response) indicating the response on each trial. |
n |
Only necessary if |
grouping |
Name of the grouping variables. It should be specified as
|
random |
Name of the random variable. It should be specified as
|
within |
Name of the within variable. It should be specified as
|
between |
Name of the between variable. It should be specified as
|
xmin |
Minimum value of the explanatory variable for which the curves should be calculated (the default is the minimum value of the explanatory variable). |
xmax |
Maximum value of the explanatory variable for which the curves should be calculated (the default is the maximum value of the explanatory variable). |
log |
If |
fun |
Name of the shape of the curve to fit. It could be a predefined
shape ( |
parini |
Initial parameters. quickpsy calculates default
initial parameters using probit analysis, but it is also possible to
specify a vector of initial parameters or a list of the form
|
guess |
Value indicating the guess rate |
lapses |
Value indicating the lapse rate |
prob |
Probability to calculate the threshold (default is
|
thresholds |
If |
bootstrap |
|
B |
number of bootstrap samples (default is 100 ONLY). |
ci |
Confidence intervals level based on percentiles (default is .95). |
optimization |
Method used for optimizization. The default is 'optim' which uses
the |