GET /api/questions/12138/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "https://numbas.mathcentre.ac.uk/api/questions/12138/?format=api",
    "name": "Perform chi-squared test for differences in preferences",
    "published": true,
    "project": "https://numbas.mathcentre.ac.uk/api/projects/601/?format=api",
    "author": {
        "url": "https://numbas.mathcentre.ac.uk/api/users/697/?format=api",
        "profile": "https://numbas.mathcentre.ac.uk/accounts/profile/697/?format=api",
        "full_name": "Newcastle University Mathematics and Statistics",
        "pk": 697,
        "avatar": {
            "20x20": "https://numbas.mathcentre.ac.uk/media/avatars/UnivNcle-shield_mKn5GZP.20x20.png",
            "40x40": "https://numbas.mathcentre.ac.uk/media/avatars/UnivNcle-shield_mKn5GZP.40x40.png",
            "150x150": "https://numbas.mathcentre.ac.uk/media/avatars/UnivNcle-shield_mKn5GZP.150x150.png"
        }
    },
    "edit": "https://numbas.mathcentre.ac.uk/question/12138/perform-chi-squared-test-for-differences-in-prefer/?format=api",
    "preview": "https://numbas.mathcentre.ac.uk/question/12138/perform-chi-squared-test-for-differences-in-prefer/preview/?format=api",
    "download": "https://numbas.mathcentre.ac.uk/question/12138/perform-chi-squared-test-for-differences-in-prefer.zip?format=api",
    "source": "https://numbas.mathcentre.ac.uk/question/12138/perform-chi-squared-test-for-differences-in-prefer.exam?format=api",
    "metadata": {
        "notes": "\n    \t\t                            \t\t    \t\t<p>Code to generate tables of different forms, with row or column totals, with or without gridlines. Very messy and assumes that there are row labels, so have to sum from the start of the data for the various sums. Also the row sums and column sums are done in different codes - need to do the column sums in the table function and leave the tableformat function &nbsp;to do the rest.*</p>\n    \t\t                            \t\t    \t\t    <p>*This has has been done. So table function has options to put in row and column sums.</p>\n    \t\t                            \t\t    \t\t    <p>table(records,['Name','Maths','English','Science'],true,true)</p>\n    \t\t                            \t\t    \t\t    <p>Boolean variables in order give:</p>\n    \t\t                            \t\t    \t\t    <p>Row totals or not.</p>\n    \t\t                            \t\t    \t\t    <p>Column totals or not.</p>\n    \t\t                            \t\t    \t\t    <p>(If column totals are on, then the totals have top and bottom grid lines).</p>\n    \t\t                            \t\t    \t\t    <p>table1(records,['Name','Maths','English','Science'],true,true,true,true)</p>\n    \t\t                            \t\t    \t\t    <p>Boolean variables in order give:</p>\n    \t\t                            \t\t    \t\t    <p>column grid lines or not,</p>\n    \t\t                            \t\t    \t\t    <p>row grid lines or not,</p>\n    \t\t                            \t\t    \t\t    <p>row totals shown or not.</p>\n    \t\t                            \t\t    \t\t    <p>column totals shown or not.</p>\n    \t\t                            \t\t    \n    \t\t                            \n    \t\t",
        "licence": "Creative Commons Attribution 4.0 International",
        "description": "<p>Uses the $\\chi^2$ test to see if there is any significant difference in preferences.</p>"
    },
    "status": "broken",
    "resources": []
}