{"size":{"Width":500,"Height":500},"appearance":{"background":null,"padding":14,"font":{"family":"Courier New","size":10.0,"bold":false,"italic":false,"underline":false,"strikeout":false,"color":"rgb(0,72,168)"},"border":{"on":true,"size":0.0,"style":"solid","color":"#666"},"text":{"wrap":false,"hAlign":"left","vAlign":"top"}},"outputType":"WIDGET","widgetState":null,"wikiPageTitle":"Regression - NBD Regression","outputs":{"warning":"Unusual observations detected. The largest hat value is 0.0776, which is higher than the threshhold of 0.00577 = 2 * (k + 1) / n.\n","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-061f7bced06947a33d9a\" class=\"formattable_widget html-widget\" style=\"width:100%;height:500px;\" width=\"100%\" height=\"500\"></div>\n</div>\n<script type=\"application/json\" data-for=\"htmlwidget-061f7bced06947a33d9a\">{\"x\":{\"html\":\"<table class = \\\"table table-condensed\\\"style = \\\"margin:0; border-bottom: 2px solid; border-top: 2px solid; font-size:90%;\\\">\\n<h3 class=\\\".h3\\\" style=\\\"color:#3E7DCC; text-align:left; margin-top:0px; margin-bottom:0\\\">NBD Regression: Fast-food Occassions<\\/h3>\\n<caption style=\\\"caption-side:bottom;font-style:italic; font-size:90%;\\\">n = 4,853 cases used in estimation; R-squared: 0.01101; Correct predictions: 18.24%; McFadden's rho-squared: 0.0112; AIC: 20,378; multiple comparisons correction: None<\\/caption>\\n <thead>\\n <tr>\\n <th style=\\\"text-align:left;\\\"> <\\/th>\\n <th style=\\\"text-align:right;\\\"> Estimate <\\/th>\\n <th style=\\\"text-align:right;\\\"> Standard Error <\\/th>\\n <th style=\\\"text-align:right;\\\"> <span style='font-style:italic;'>z<\\/span> <\\/th>\\n <th style=\\\"text-align:right;\\\"> <span style='font-style:italic;'>p<\\/span> <\\/th>\\n <\\/tr>\\n <\\/thead>\\n<tbody>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> (Intercept) <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"color:blue\\\">1.38<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.04 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; font-weight: bold; background-color: #80b4f4\\\">34.53<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"font-weight: bold\\\">< .001<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> S1 Age: 19 to 24 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>0.03<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.03 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #e7f0fc\\\">0.94<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.349<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> S1 Age: 25 to 29 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>0.04<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.04 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #e1edfc\\\">1.17<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.243<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> S1 Age: 30 to 34 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>-0.03<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.04 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #feedeb\\\">-0.78<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.438<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> S1 Age: 35 to 39 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>-0.05<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.04 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #fddfda\\\">-1.42<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.155<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> S1 Age: 40 to 44 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>-0.06<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.04 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #fddad5\\\">-1.64<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.101<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> S1 Age: 45 to 49 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"color:red\\\">-0.10<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.04 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; font-weight: bold; background-color: #fcc1b8\\\">-2.77<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"font-weight: bold\\\">.006<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> S2 Gender: Female <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"color:red\\\">-0.04<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.02 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; font-weight: bold; background-color: #fdc9c1\\\">-2.41<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"font-weight: bold\\\">.016<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> C2 Work Status: Full time employment <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>0.04<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.03 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #d6e6fb\\\">1.61<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.108<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> C2 Work Status: Part time employment <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>0.01<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.03 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #f6fafe\\\">0.32<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.753<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> C2 Work Status: Unemployed <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"color:red\\\">-0.11<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.05 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; font-weight: bold; background-color: #fdcec7\\\">-2.19<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"font-weight: bold\\\">.029<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> C2 Work Status: Student/not working <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>-0.01<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.03 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #fef8f7\\\">-0.29<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.770<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"vertical-align:middle; text-align:left;\\\"> C2 Work Status: Retired <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>0.01<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> 0.15 <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; background-color: #fcfdfe\\\">0.09<\\/span> <\\/td>\\n <td style=\\\"vertical-align:middle; text-align:right;\\\"> <span>.927<\\/span> <\\/td>\\n <\\/tr>\\n<\\/tbody>\\n<\\/table>\"},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-061f7bced06947a33d9a\">{\"viewer\":{\"width\":\"100%\",\"height\":350,\"padding\":15,\"fill\":false},\"browser\":{\"width\":\"100%\",\"height\":500,\"padding\":0,\"fill\":false}}</script>","htmlwidget-head":"{\"stylesheets\":[\"https://widget-cdn.displayr.com/bootstrap.min-b0b695267332b70caf873ac5fdb1979f.css\"],\"javascript\":[\"https://widget-cdn.displayr.com/jquery.min-91a24ea414e8c447d647cecab86866c2.js\",\"https://widget-cdn.displayr.com/bootstrap.min-326d184c3c13feede563e4adcb5ff2a0.js\",\"https://widget-cdn.displayr.com/html5shiv.min-e70767555a95c48c08833356d362ccef.js\",\"https://widget-cdn.displayr.com/respond.min-4255ee1a060b15cb2432d0a497a6d510.js\",\"https://widget-cdn.displayr.com/htmlwidgets-62110aac48e210c7e8a9b92efed27a2d.js\",\"https://widget-cdn.displayr.com/formattable_widget-d2927ec9dec4a568bd3f4a62041c0ddb.js\"],\"attachments\":[],\"widget-cannot-re-render\":true,\"package\":\"formattable\",\"package_version\":\"0.2.1\"}"},"secondsTaken":2.178,"updated":"2019-11-13T21:17:21.512895Z","lastUpdatedMessage":null,"executedCode":null,"lastSavedCode":null,"highlightedCodeSpans":[{"start":63,"length":11,"index":0},{"start":77,"length":2,"index":0},{"start":82,"length":2,"index":0},{"start":87,"length":2,"index":0},{"start":139,"length":13,"index":4},{"start":200,"length":17,"index":6},{"start":228,"length":7,"index":6},{"start":283,"length":11,"index":4},{"start":305,"length":10,"index":4},{"start":332,"length":9,"index":4},{"start":2096,"length":10,"index":4}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":true,"calculating":"Idle","showDebug":false,"layout":"OutputOnly","vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Automatic","warnSlow":true,"Options":{"debugconsole":false,"codeposition":"OutputOnly","splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Automatic","warn slow":true}}