Do correlation analysis
Request
{
url : "/study/{studyId}/correlate",
GET query parameters : {
corrVar: "var1", // At least 2 varIds must be specified
wgtVar: "var2", // Optional
caseSubset : "ID(var2) >= 5", // Optional
missDeletion : "PAIRWISE|LISTWISE" // Optional, defaults to LISTWISE
}
}
Response
{
payload : {
resultValuesMap : {
"var1Id-var2Id" : {
correlationCoefficient: "number",
significance : "number",
caseCount : "number"
},
"var1Id-var3Id" : {
correlationCoefficient: "number",
significance : "number",
caseCount : "number"
},
"var2Id-var3Id" : {
...
}
}
}
}
resultValuesMap maps 2 correlation variables to an object containing values for the correlation between them. The variable that was first in the correlationVariables input comes first in the key.