{"action":"closed","issue":{"url":"https://api.github.com/repos/timothyb0912/pylogit/issues/36","repository_url":"https://api.github.com/repos/timothyb0912/pylogit","labels_url":"https://api.github.com/repos/timothyb0912/pylogit/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/timothyb0912/pylogit/issues/36/comments","events_url":"https://api.github.com/repos/timothyb0912/pylogit/issues/36/events","html_url":"https://github.com/timothyb0912/pylogit/issues/36","id":405468068,"node_id":"MDU6SXNzdWU0MDU0NjgwNjg=","number":36,"title":"Clarification on specification","user":{"login":"georgewambold","id":13788135,"node_id":"MDQ6VXNlcjEzNzg4MTM1","avatar_url":"https://avatars0.githubusercontent.com/u/13788135?v=4","gravatar_id":"","url":"https://api.github.com/users/georgewambold","html_url":"https://github.com/georgewambold","followers_url":"https://api.github.com/users/georgewambold/followers","following_url":"https://api.github.com/users/georgewambold/following{/other_user}","gists_url":"https://api.github.com/users/georgewambold/gists{/gist_id}","starred_url":"https://api.github.com/users/georgewambold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgewambold/subscriptions","organizations_url":"https://api.github.com/users/georgewambold/orgs","repos_url":"https://api.github.com/users/georgewambold/repos","events_url":"https://api.github.com/users/georgewambold/events{/privacy}","received_events_url":"https://api.github.com/users/georgewambold/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-01-31T22:25:41Z","updated_at":"2019-02-11T23:03:44Z","closed_at":"2019-02-11T23:03:44Z","author_association":"NONE","body":"Hey @timothyb0912, thank you for your work on this library!\r\n\r\nI'm trying to apply the conditional logit (MNL) model to racing data. I was working through the examples and I don't fully understand what to pass for my `specification` parameter. \r\n\r\nMy data is structured like this: \r\n```\r\nrace_id | driver_id | driver_age | attr_a | attr_b | etc.. | was_winner\r\n\r\npl.create_choice_model(\r\n    data       = X,\r\n    alt_id_col = 'driver_id',\r\n    obs_id_col = 'race_id',\r\n    choice_col = 'was_winner',\r\n    specification = ...\r\n)\r\n```\r\nI saw issue #21 , which is a similar question to mine and currently I'm setting my specification like you suggested: \r\n```\r\ncharacteristics = ['driver_age', 'attr_a', 'attr_b']\r\nfor variable in characteristics:\r\n    spec[variable] = 'all_same'\r\n```\r\nThe problem is I don't really understand why I'm setting the `specification` that way. I don't really understand what the `specification` param represents. \r\n\r\n- Am I setting the param properly?\r\n\r\n- Is this model the correct type for my problem?\r\n\r\nThanks again for your time writing/maintaining pylogit,\r\nGeorge"}}
{"actor":{"display_login":"timothyb0912"}}