{"action":"created","issue":{"url":"https://api.github.com/repos/fdschneider/spatial_warnings/issues/15","labels_url":"https://api.github.com/repos/fdschneider/spatial_warnings/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/fdschneider/spatial_warnings/issues/15/comments","events_url":"https://api.github.com/repos/fdschneider/spatial_warnings/issues/15/events","html_url":"https://github.com/fdschneider/spatial_warnings/issues/15","id":93265489,"number":15,"title":"Fit patch size distributions","user":{"login":"alaindanet","id":11349327,"avatar_url":"https://avatars.githubusercontent.com/u/11349327?v=3","gravatar_id":"","url":"https://api.github.com/users/alaindanet","html_url":"https://github.com/alaindanet","followers_url":"https://api.github.com/users/alaindanet/followers","following_url":"https://api.github.com/users/alaindanet/following{/other_user}","gists_url":"https://api.github.com/users/alaindanet/gists{/gist_id}","starred_url":"https://api.github.com/users/alaindanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaindanet/subscriptions","organizations_url":"https://api.github.com/users/alaindanet/orgs","repos_url":"https://api.github.com/users/alaindanet/repos","events_url":"https://api.github.com/users/alaindanet/events{/privacy}","received_events_url":"https://api.github.com/users/alaindanet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fdschneider/spatial_warnings/labels/indicator%20function","name":"indicator function","color":"f7c6c7"},{"url":"https://api.github.com/repos/fdschneider/spatial_warnings/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"fdschneider","id":5748040,"avatar_url":"https://avatars.githubusercontent.com/u/5748040?v=3","gravatar_id":"","url":"https://api.github.com/users/fdschneider","html_url":"https://github.com/fdschneider","followers_url":"https://api.github.com/users/fdschneider/followers","following_url":"https://api.github.com/users/fdschneider/following{/other_user}","gists_url":"https://api.github.com/users/fdschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/fdschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdschneider/subscriptions","organizations_url":"https://api.github.com/users/fdschneider/orgs","repos_url":"https://api.github.com/users/fdschneider/repos","events_url":"https://api.github.com/users/fdschneider/events{/privacy}","received_events_url":"https://api.github.com/users/fdschneider/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-07-06T12:18:01Z","updated_at":"2015-09-25T08:21:24Z","closed_at":null,"body":"[fitpsd.R](https://github.com/fdschneider/spatial_warnings/blob/master/R/fitpsd.R) et  [patchsizedistr_ews.R](https://github.com/fdschneider/spatial_warnings/blob/master/R/patchsizedistr_ews.R)\r\n\r\npatchsizedistr_ews.R seems to be obsolete.\r\n\r\n- Add the documentation.\r\n\r\nMay be we have also to think to the structure of this function ? Cumulative patch size distribution could be separated from power law fitting function ?\r\n"},"comment":{"url":"https://api.github.com/repos/fdschneider/spatial_warnings/issues/comments/143157391","html_url":"https://github.com/fdschneider/spatial_warnings/issues/15#issuecomment-143157391","issue_url":"https://api.github.com/repos/fdschneider/spatial_warnings/issues/15","id":143157391,"user":{"login":"fdschneider","id":5748040,"avatar_url":"https://avatars.githubusercontent.com/u/5748040?v=3","gravatar_id":"","url":"https://api.github.com/users/fdschneider","html_url":"https://github.com/fdschneider","followers_url":"https://api.github.com/users/fdschneider/followers","following_url":"https://api.github.com/users/fdschneider/following{/other_user}","gists_url":"https://api.github.com/users/fdschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/fdschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdschneider/subscriptions","organizations_url":"https://api.github.com/users/fdschneider/orgs","repos_url":"https://api.github.com/users/fdschneider/repos","events_url":"https://api.github.com/users/fdschneider/events{/privacy}","received_events_url":"https://api.github.com/users/fdschneider/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T08:21:24Z","updated_at":"2015-09-25T08:21:24Z","body":"Presently, those models are compared by AIC, which is invalid since the data are very heterogeneous. For our grazing paper, we now iteratively fit a polynomial model on bootstrapped data to decide about the direction of the curvature, by looking at confidence intervals, and then fit the most appropriate model. This takes much more computation time.\r\n\r\nAlso, the exponent alpha is the exponent of the cumulative distribution. This should rather be made comparable to other studies by transforming to the exponent on non-cumulative data as described in White et al. 2008. \r\n\r\nFinally, we might want to have a switch that fits the models either to the cumulative distribution or the non-cumulative patch size distribution. \r\n"}}