Learn R Programming

quickpsy (version 0.1.5.1)

Fits Psychometric Functions for Multiple Groups

Description

Quickly fits and plots psychometric functions (normal, logistic, Weibull or any or any function defined by the user) for multiple groups.

Copy Link

Version

Install

install.packages('quickpsy')

Monthly Downloads

334

Version

0.1.5.1

License

MIT + file LICENSE

Maintainer

Linares Daniel

Last Published

October 2nd, 2019

Functions in quickpsy (0.1.5.1)

logliks

Calculates the loglikelihoods logliks calculates the loglikelihoods.
one_deviancep

Calculates the probability of obtaining the deviance value or larger if the parametric model holds for one condition one_deviancep calculates the probability of obtaining the deviance value or larger if the parametric model holds for one condition
inv_cum_normal_fun

Inverse cumulative normal function
get_functions

Predefined functions
one_deviance

Creates the deviance for one condition one_deviance creates the deviance for one condition one_deviance
parbootstrap

Creates bootstrap samples of the parameters
plotcurves_

Plot the curves
limits

Creates the limits limits creates the limits
logistic_fun

Logistic function
parci

Calculates the confidence intervals for the parameters parci calculates the confidence intervals for the parameters
logliksboot

Calculates the bootstrap loglikelihoods
inv_logistic_fun

Inverse logistic function
parameters

Calculates the parameters parameters calculates the parameters
quickreadfiles

Reads several files
one_ypred

Calculate the predictions of the response variable for one condition one_ypred calculate the predictions of the response variable for one condition
avbootstrap

Creates bootstrap samples
deviancep

Calculates the probability of obtaining the deviance value or larger if the parametric model holds deviancep calculates the probability of obtaining the deviance value or larger if the parametric model holds.
one_logliksaturated

Creates the loglik for the saturated model for one condition one_logliksaturated creates the loglik for the saturated model for one condition one_loglik
fitpsy

Fits the curve fitpsy fits de curve
one_aic

Calculates the AIC for one condition one_aic creates the deviance for one condition one_deviance
sse

Sum of squared errors of prediction
one_parameters

Obtains the parameters for one condition one_parameters obtains the parameters for one condition
plotpar

Plot the values of the parameters
one_parci

Calculates the confidence intervals for one condition one_parci calculates the confidence intervals for one condition
plotthresholds_

Plot the thresholds
one_parcomparisons

Pair comparisons of the parameters using bootstrap (for each parameter) one_parcomparisons Calculates the bootstrap confidence intervals for the difference in the parameters for two groups for all possible pairs of groups (for each parameter)
thresholdsci

Calculates the confidence intervals for the thresholds thresholdsci calculates the confidence intervals for the thresholds
weibull_fun

Weibull function
qpdat

Data set for demonstration
thresholdcomparisons

Pair comparisons of the parameters using bootstrap thresholdcomparisons Calculates the bootstrap confidence intervals for the difference in the parameters for two groups for all possible pairs of groups
summary.quickpsy

Plot the parameters and its confidence intervals summary Plot the parameters and its confidence intervals
one_curve

Creates the curve for one condition one_curve Creates the curve for one condition
one_limit

Creates the limits for one condition one_limit creates the limits for one condition
one_threshold

Calculates the threshold for one condition one_threshold calculates the threshold for one condition one_threshold
one_sse

Calculates the sum of squared errors of prediction one_sse calculates the sum of squared errors of prediction for one condition
plotcurves

Plot the curves
parn

Creates one bootstrap sample one_bootstrapav creates one bootstrap sample
inv_weibull_fun

Inverse Weibull function
one_loglik

Creates the loglik for one condition one_loglik creates the loglik for one condition one_loglik
logliksbootsaturated

Calculates the bootstrap loglikelihoods for the saturated model
parcomparisons

Pair comparisons of the parameters using bootstrap parcomparisons Calculates the bootstrap confidence intervals for the difference in the parameters for two groups for all possible pairs of groups
loglikssaturated

Calculates the loglikelihoods of the saturated model
one_thresholdcomparisons

Pair comparisons of the thresholds using bootstrap one_thresholdcomparisons Calculates the bootstrap confidence intervals for the difference in the thresholds for two groups for all possible pairs of groups
parini

Calculates some initial parameters parini calculates some initial parameters
plotpar_

Plot the values of the parameters
thresholds

Calculates the thresholds
one_thresholdsci

Calculates the confidence intervals for the threshold of one condition one_thresholdsci calculates the confidence intervals for the threshold of one condition
plotthresholds

Plot the thresholds
thresholdsbootstrap

Calculates bootstrap thresholds thresholdsbootstrap calculates bootstrap thresholds
quickpsy_

Fits psychometric functions
ypred

Predicted probabilities
quickpsy

Fits psychometric functions
create_nllsaturated

Creates the full saturated negative log-likelihood function create_nll Creates the full saturated negative log-likelihood function
create_psy_fun

Creates the psychometric function create_psy_fun creates the psychometric function
cum_normal_fun

Cumulative normal function
aic

Calculates the AICs
deviance

Calculates the deviances
create_full_nll

Creates the full negative log-likelihood function create_full_nll Creates the full negative log-likelihood function
devianceboot

Calculates the bootsrap deviances
curvesbootstrap

Creates the bootstrap curves curvesbootstrap creates the bootstrap curves
create_nll

Creates the negative log-likelihood function create_nll Creates the negative log-likelihood function