{"action":"opened","issue":{"url":"https://api.github.com/repos/CamDavidsonPilon/lifelines/issues/538","repository_url":"https://api.github.com/repos/CamDavidsonPilon/lifelines","labels_url":"https://api.github.com/repos/CamDavidsonPilon/lifelines/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/CamDavidsonPilon/lifelines/issues/538/comments","events_url":"https://api.github.com/repos/CamDavidsonPilon/lifelines/issues/538/events","html_url":"https://github.com/CamDavidsonPilon/lifelines/issues/538","id":381911778,"node_id":"MDU6SXNzdWUzODE5MTE3Nzg=","number":538,"title":"Calculation of per-term likelihood ratio p-value for Cox regression model","user":{"login":"ManuelaS","id":7354170,"node_id":"MDQ6VXNlcjczNTQxNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/7354170?v=4","gravatar_id":"","url":"https://api.github.com/users/ManuelaS","html_url":"https://github.com/ManuelaS","followers_url":"https://api.github.com/users/ManuelaS/followers","following_url":"https://api.github.com/users/ManuelaS/following{/other_user}","gists_url":"https://api.github.com/users/ManuelaS/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelaS/subscriptions","organizations_url":"https://api.github.com/users/ManuelaS/orgs","repos_url":"https://api.github.com/users/ManuelaS/repos","events_url":"https://api.github.com/users/ManuelaS/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelaS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-17T23:35:06Z","updated_at":"2018-11-17T23:35:06Z","closed_at":null,"author_association":"NONE","body":"Hi @CamDavidsonPilon,\r\n\r\nThanks for providing a great survival analysis library!\r\n\r\nIn lifelines, is it possible to calculate a per-term likelihood ratio p-value for a Cox regression model?\r\n\r\nFor example, for a multi-variate Cox model with age (continuous) and disease (categorical with multiple categories/levels), in R I would do:\r\n\r\n```R\r\nlibrary(survival)\r\nlibrary(car)\r\ndata(kidney)\r\ncph = coxph(Surv(time, status) ~ disease + age, data=kidney)\r\ncar::Anova(cph, type=2, test.statistic='LR')\r\n```\r\nto calculate the likelihood ratio p-values for the disease term overall.\r\n\r\nWhat is the best way to do this with lifelines?"}}
{"actor":{"display_login":"ManuelaS"}}