Run Correlation
run_correlationThis is QUESTIONSTAR's built-in, server-side computation on the survey's responses. The same and other statistics (e.g. multivariate/interaction regression, time-series, ANOVA) can be computed from the raw responses returned by list_survey_responses. Computes pairwise correlations between survey variables: one matrix per requested method (pearson default; spearman for ordinal/non-normal data; tau = Kendall). Variables are addressed by question codes as returned by get_survey: Q1 (whole question), Q3.1 (matrix row), Q2.3 (checkbox option — enters as 0/1). Analyzable: choice questions (options enter by their numeric export code), checkbox options, numeric, slider and sorting questions; free-text cannot be analyzed. Each cell carries the pair's coefficient r (−1…1), its two-sided pValue, fisherZ (Pearson) and n = the number of response pairs used — missing answers are excluded PAIRWISE, so n varies per cell. Uncomputable pairs (e.g. a constant variable) carry an error instead of numbers. Heavy rate class (600 requests/hour).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Survey publication code — the 8-character code from the survey's public link (e.g. 1a2b3c4d). Returned by list_surveys. | |
| questions | Yes | At least two question codes to correlate pairwise (e.g. ["Q1","Q3.1"]). | |
| correlationTypes | No | Correlation methods; omitted = pearson. Any combination — one result matrix per method. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrices | No | ||
| questions | No | ||
| casesTotal | No | ||
| surveyCode | No |