{"action":"created","issue":{"url":"https://api.github.com/repos/Rapporter/pander/issues/217","labels_url":"https://api.github.com/repos/Rapporter/pander/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/Rapporter/pander/issues/217/comments","events_url":"https://api.github.com/repos/Rapporter/pander/issues/217/events","html_url":"https://github.com/Rapporter/pander/pull/217","id":99692344,"number":217,"title":"Added support for polr and summary.polr for MASS","user":{"login":"RomanTsegelskyi","id":3235379,"avatar_url":"https://avatars.githubusercontent.com/u/3235379?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanTsegelskyi","html_url":"https://github.com/RomanTsegelskyi","followers_url":"https://api.github.com/users/RomanTsegelskyi/followers","following_url":"https://api.github.com/users/RomanTsegelskyi/following{/other_user}","gists_url":"https://api.github.com/users/RomanTsegelskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanTsegelskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanTsegelskyi/subscriptions","organizations_url":"https://api.github.com/users/RomanTsegelskyi/orgs","repos_url":"https://api.github.com/users/RomanTsegelskyi/repos","events_url":"https://api.github.com/users/RomanTsegelskyi/events{/privacy}","received_events_url":"https://api.github.com/users/RomanTsegelskyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T17:21:10Z","updated_at":"2015-08-08T04:32:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Rapporter/pander/pulls/217","html_url":"https://github.com/Rapporter/pander/pull/217","diff_url":"https://github.com/Rapporter/pander/pull/217.diff","patch_url":"https://github.com/Rapporter/pander/pull/217.patch"},"body":"Support for `polr/summary.polr` from `MASS`. Here are small examples:\r\n\r\n```r\r\n> house.plr <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing)\r\n> pander(house.plr)\r\n\r\nCall:\r\npolr(formula = Sat ~ Infl + Type + Cont, data = housing, weights = Freq)\r\n\r\n\r\n-----------------------------------------------------------------------------\r\n InflMedium   InflHigh   TypeApartment   TypeAtrium   TypeTerrace   ContHigh \r\n------------ ---------- --------------- ------------ ------------- ----------\r\n   0.5664      1.289        -0.5724       -0.3662       -1.091       0.3603  \r\n-----------------------------------------------------------------------------\r\n\r\nTable: Coefficients\r\n\r\n\r\n--------------------------\r\n Low|Medium   Medium|High \r\n------------ -------------\r\n  -0.4961       0.6907    \r\n--------------------------\r\n\r\nTable: Intercepts\r\n\r\n\r\nResidual Deviance: 3479.149 \r\nAIC: 3495.149 \r\n> pander(summary(house.plr))\r\n\r\nRe-fitting to get Hessian\r\n\r\n\r\nCall:\r\npolr(formula = Sat ~ Infl + Type + Cont, data = housing, weights = Freq)\r\n\r\n\r\n--------------------------------------------------\r\n      &nbsp;         Value   Std. Error   t value \r\n------------------- ------- ------------ ---------\r\n  **InflMedium**    0.5664    0.10465      5.412  \r\n\r\n   **InflHigh**     1.2888    0.12716     10.136  \r\n\r\n **TypeApartment**  -0.5724   0.11924     -4.800  \r\n\r\n  **TypeAtrium**    -0.3662   0.15517     -2.360  \r\n\r\n  **TypeTerrace**   -1.0910   0.15149     -7.202  \r\n\r\n   **ContHigh**     0.3603    0.09554      3.771  \r\n--------------------------------------------------\r\n\r\nTable: Coeficients\r\n\r\n\r\n------------------------------------------------\r\n     &nbsp;        Value   Std. Error   t value \r\n----------------- ------- ------------ ---------\r\n **Low|Medium**   -0.4961    0.1248     -3.974  \r\n\r\n **Medium|High**  0.6907     0.1255      5.505  \r\n------------------------------------------------\r\n\r\nTable: Intercepts\r\n\r\n\r\nResidual Deviance: 3479.149 \r\nAIC: 3495.149 \r\n> pander(summary(house.plr, correlation = TRUE))\r\n\r\nRe-fitting to get Hessian\r\n\r\n\r\nCall:\r\npolr(formula = Sat ~ Infl + Type + Cont, data = housing, weights = Freq)\r\n\r\n\r\n--------------------------------------------------\r\n      &nbsp;         Value   Std. Error   t value \r\n------------------- ------- ------------ ---------\r\n  **InflMedium**    0.5664    0.10465      5.412  \r\n\r\n   **InflHigh**     1.2888    0.12716     10.136  \r\n\r\n **TypeApartment**  -0.5724   0.11924     -4.800  \r\n\r\n  **TypeAtrium**    -0.3662   0.15517     -2.360  \r\n\r\n  **TypeTerrace**   -1.0910   0.15149     -7.202  \r\n\r\n   **ContHigh**     0.3603    0.09554      3.771  \r\n--------------------------------------------------\r\n\r\nTable: Coeficients\r\n\r\n\r\n------------------------------------------------\r\n     &nbsp;        Value   Std. Error   t value \r\n----------------- ------- ------------ ---------\r\n **Low|Medium**   -0.4961    0.1248     -3.974  \r\n\r\n **Medium|High**  0.6907     0.1255      5.505  \r\n------------------------------------------------\r\n\r\nTable: Intercepts\r\n\r\n\r\nResidual Deviance: 3479.149 \r\nAIC: 3495.149 \r\n\r\n------------------------------------------------------------------------\r\n      &nbsp;         InflMedium   InflHigh   TypeApartment   TypeAtrium \r\n------------------- ------------ ---------- --------------- ------------\r\n   **InflHigh**        0.4388                                           \r\n\r\n **TypeApartment**   -0.009507    -0.07377                              \r\n\r\n  **TypeAtrium**      0.02199     -0.02934       0.52                   \r\n\r\n  **TypeTerrace**     0.007534    -0.01464       0.536         0.4166   \r\n\r\n   **ContHigh**       0.05234      0.121        -0.1194       -0.1346   \r\n\r\n  **Low|Medium**       0.442       0.3482       0.5828         0.4433   \r\n\r\n  **Medium|High**      0.4732      0.4062       0.5514         0.4275   \r\n------------------------------------------------------------------------\r\n\r\nTable: Correlation of Coefficients (continued below)\r\n\r\n \r\n---------------------------------------------------------\r\n      &nbsp;         TypeTerrace   ContHigh   Low|Medium \r\n------------------- ------------- ---------- ------------\r\n   **InflHigh**                                          \r\n\r\n **TypeApartment**                                       \r\n\r\n  **TypeAtrium**                                         \r\n\r\n  **TypeTerrace**                                        \r\n\r\n   **ContHigh**        -0.1441                           \r\n\r\n  **Low|Medium**       0.4685       0.3721               \r\n\r\n  **Medium|High**      0.4232       0.3924      0.9172   \r\n---------------------------------------------------------\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Rapporter/pander/issues/comments/128911588","html_url":"https://github.com/Rapporter/pander/pull/217#issuecomment-128911588","issue_url":"https://api.github.com/repos/Rapporter/pander/issues/217","id":128911588,"user":{"login":"daroczig","id":495736,"avatar_url":"https://avatars.githubusercontent.com/u/495736?v=3","gravatar_id":"","url":"https://api.github.com/users/daroczig","html_url":"https://github.com/daroczig","followers_url":"https://api.github.com/users/daroczig/followers","following_url":"https://api.github.com/users/daroczig/following{/other_user}","gists_url":"https://api.github.com/users/daroczig/gists{/gist_id}","starred_url":"https://api.github.com/users/daroczig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daroczig/subscriptions","organizations_url":"https://api.github.com/users/daroczig/orgs","repos_url":"https://api.github.com/users/daroczig/repos","events_url":"https://api.github.com/users/daroczig/events{/privacy}","received_events_url":"https://api.github.com/users/daroczig/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T04:32:29Z","updated_at":"2015-08-08T04:32:29Z","body":"Is it intentional that we do not add an extra line break between:\r\n\r\n```\r\nResidual Deviance: 3479.149 \r\nAIC: 3495.149 \r\n```\r\n\r\nThis will be rendered on the same line after `pandoc` conversion AFAIK."}}