{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/math/issues/144","labels_url":"https://api.github.com/repos/stan-dev/math/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/math/issues/144/comments","events_url":"https://api.github.com/repos/stan-dev/math/issues/144/events","html_url":"https://github.com/stan-dev/math/issues/144","id":100930641,"number":144,"title":"Implement SSfoo functions from R","user":{"login":"bgoodri","id":3386282,"avatar_url":"https://avatars.githubusercontent.com/u/3386282?v=3","gravatar_id":"","url":"https://api.github.com/users/bgoodri","html_url":"https://github.com/bgoodri","followers_url":"https://api.github.com/users/bgoodri/followers","following_url":"https://api.github.com/users/bgoodri/following{/other_user}","gists_url":"https://api.github.com/users/bgoodri/gists{/gist_id}","starred_url":"https://api.github.com/users/bgoodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgoodri/subscriptions","organizations_url":"https://api.github.com/users/bgoodri/orgs","repos_url":"https://api.github.com/users/bgoodri/repos","events_url":"https://api.github.com/users/bgoodri/events{/privacy}","received_events_url":"https://api.github.com/users/bgoodri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stan-dev/math/labels/Feature","name":"Feature","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/stan-dev/math/milestones/3","html_url":"https://github.com/stan-dev/math/milestones/Future","labels_url":"https://api.github.com/repos/stan-dev/math/milestones/3/labels","id":1195697,"number":3,"title":"Future","description":"For tasks and features not scheduled for the next release. ","creator":{"login":"syclik","id":425751,"avatar_url":"https://avatars.githubusercontent.com/u/425751?v=3","gravatar_id":"","url":"https://api.github.com/users/syclik","html_url":"https://github.com/syclik","followers_url":"https://api.github.com/users/syclik/followers","following_url":"https://api.github.com/users/syclik/following{/other_user}","gists_url":"https://api.github.com/users/syclik/gists{/gist_id}","starred_url":"https://api.github.com/users/syclik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syclik/subscriptions","organizations_url":"https://api.github.com/users/syclik/orgs","repos_url":"https://api.github.com/users/syclik/repos","events_url":"https://api.github.com/users/syclik/events{/privacy}","received_events_url":"https://api.github.com/users/syclik/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-07-06T20:56:33Z","updated_at":"2015-08-14T04:24:48Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-08-14T04:23:30Z","updated_at":"2015-10-03T23:24:31Z","closed_at":null,"body":"Running `example(selfStart)` in R ultimately lists 10 transformation functions\r\n```\r\nList of 10\r\n $ SSasymp    :function (input, Asym, R0, lrc)  \r\n $ SSasympOff :function (input, Asym, lrc, c0)  \r\n $ SSasympOrig:function (input, Asym, lrc)  \r\n $ SSbiexp    :function (input, A1, lrc1, A2, lrc2)  \r\n $ SSfol      :function (Dose, input, lKe, lKa, lCl)  \r\n $ SSfpl      :function (input, A, B, xmid, scal)  \r\n $ SSgompertz :function (x, Asym, b2, b3)  \r\n $ SSlogis    :function (input, Asym, xmid, scal)  \r\n $ SSmicmen   :function (input, Vm, K)  \r\n $ SSweibull  :function (x, Asym, Drop, lrc, pwr) \r\n```\r\nthat are often used in PK / PD models, which we will need if we want to write a `stan_nlmer` function that is similar to `lme4::nlmer`. These are relatively easy to implement because these R functions also calculate the gradient with respect to all arguments except the first and return it as an attribute of the output. Just execute `body(SSfoo)` to see the R implementation."},"comment":{"url":"https://api.github.com/repos/stan-dev/math/issues/comments/145298576","html_url":"https://github.com/stan-dev/math/issues/144#issuecomment-145298576","issue_url":"https://api.github.com/repos/stan-dev/math/issues/144","id":145298576,"user":{"login":"bgoodri","id":3386282,"avatar_url":"https://avatars.githubusercontent.com/u/3386282?v=3","gravatar_id":"","url":"https://api.github.com/users/bgoodri","html_url":"https://github.com/bgoodri","followers_url":"https://api.github.com/users/bgoodri/followers","following_url":"https://api.github.com/users/bgoodri/following{/other_user}","gists_url":"https://api.github.com/users/bgoodri/gists{/gist_id}","starred_url":"https://api.github.com/users/bgoodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgoodri/subscriptions","organizations_url":"https://api.github.com/users/bgoodri/orgs","repos_url":"https://api.github.com/users/bgoodri/repos","events_url":"https://api.github.com/users/bgoodri/events{/privacy}","received_events_url":"https://api.github.com/users/bgoodri/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T23:24:31Z","updated_at":"2015-10-03T23:24:31Z","body":"The number one priority signature is to input a var vector and a few var scalars and output a vector. But if we implemented it with VectorViews, then some mix of vectors and scalars wouldn't require extra implementations.\r\n\r\nThe Gomperz density is different from the Gompertz transformation function\r\nhttps://en.wikipedia.org/wiki/Gompertz_distribution#Probability_density_function\r\nhttps://en.wikipedia.org/wiki/Gompertz_function#Formula"}}