View source: R/psych_utils_multi.R
PsychParameters | R Documentation |
This function calculates the Point of Subjective Equality (PSE) and Just Noticeable Difference (JND) from a list of fitted Generalized Linear Models (GLMs). It extracts these parameters using the PsychDelta
function and returns them in a structured dataframe.
PsychParameters(model_list, se = TRUE)
model_list |
A structured list of grouped models obtained from |
se |
Logical. if |
The function supports three types of input:
A structured list of models (as produced by PsychModels
): Extracts PSE and JND for each model and includes the corresponding grouping factors in the output.
A single GLM model: Returns a one-row data frame with PSE, JND, and (if requested) standard errors.
A list of GLM models: Computes PSE and JND for each model and returns a data frame.
A data frame containing PSE and JND estimates, along with their standard errors (if se = TRUE
).
If the input is a grouped list of models, the output includes columns for the grouping factors.
PsychModels
, PsychDelta
model_list <- PsychModels(formula = cbind(Longer, Total - Longer) ~ X,
data = simul_data,
group_factors = "Subject")
psych_parameters <- PsychParameters(model_list)
model_list_vibro <- PsychModels(vibro_exp3,
group_factors = c("subject", "vibration"),
formula = cbind(faster, slower) ~ speed)
psych_parameters_vibro <- PsychParameters(model_list_vibro)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.