Fetch Significance Testing Analysis
Analysis / Advanced Stats
Fetch Significance Testing Analysis
Description
Get significance testing analysis data for multiple choice questions.
Payload
{
"fromDate": string,
"toDate": string,
"filter": array,
"groups": object
"excludeQuestions": array,
"questionId1": string,
"questionId2": string,
}
where:
fromDate: start date in ISO format. Required.toDate: end date in ISO format. Required.filter: array of filters to filter the responses. Optional.groups: Object indexed by question id with aqas prefix. Every key has assigned an array with the question ids withqprefix that are the same question through different concepts inside a concept test. Only needed for project with Concept Tests or Question Loops. Optional.aggregateOptions: Used when filtering with a bucket. Specifies the bucket configuration applied. Optional.excludeQuestions: Array of question ids. Questions specified in this array belong to a Contact Info item, specifically the country and state questions that should be excluded from analysis. Optional.questionId1andquestionId2: For significance testing to work, 2 questions must be selected first, these field are those 2 questions. Required.
Response
200 OK
{
"criticalValue": number,
"pValue": number,
"df": number,
"matrix": object
}
where:
criticalValue: Chi square critical value.df: Chi square degrees of freedom.matrix: Chi square resulting matrix.pValue: Chi square p-value.
400 Bad Request
Missing or invalid
projectId/fromDate/toDatefields.
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in the service.
POST
Fetch Significance Testing Analysis
Description
Get significance testing analysis data for multiple choice questions.Payload
fromDate: start date in ISO format. Required.toDate: end date in ISO format. Required.filter: array of filters to filter the responses. Optional.groups: Object indexed by question id with aqas prefix. Every key has assigned an array with the question ids withqprefix that are the same question through different concepts inside a concept test. Only needed for project with Concept Tests or Question Loops. Optional.aggregateOptions: Used when filtering with a bucket. Specifies the bucket configuration applied. Optional.excludeQuestions: Array of question ids. Questions specified in this array belong to a Contact Info item, specifically the country and state questions that should be excluded from analysis. Optional.questionId1andquestionId2: For significance testing to work, 2 questions must be selected first, these field are those 2 questions. Required.
Response
200 OK
criticalValue: Chi square critical value.df: Chi square degrees of freedom.matrix: Chi square resulting matrix.pValue: Chi square p-value.
400 Bad Request
Missing or invalidprojectId/fromDate/toDatefields.
401 Unauthorized
Invalid authorization.
404 Not Found
Resource not found.
500 Internal Server Error
Error occurred in the service.