{"appearance":{"background":"white","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,"outputs":{"console":"<pre class='debug-source'>&gt;library(flipRegression)\n</pre>\n<pre class='debug-source'>&gt;if(!(formType == &quot;Linear&quot;) || formMissing == &quot;Use partial data (pairwise correlations)&quot; || formMissing == &quot;Multiple imputation&quot;)\n formRobustSE = FALSE\n</pre>\n<pre class='debug-source'>&gt;if(formMissing != &quot;Multiple imputation&quot;)\n formAuxiliaryVariables = NULL\n</pre>\n<pre class='debug-source'>&gt;glm &lt;- Regression(sales ~ advertising, weights = QPopulationWeight, subset = QFilter, missing = formMissing, output = formOutput, robust.se = formRobustSE, type = formType, show.labels = !formNames, auxiliary = formAuxiliaryVariables)\n</pre>\r\n<div class=\"debug-summarystatistics\">\r\n<table>\r\n<tr><th>Total time:</th><td>1.10s</td></tr>\r\n<tr><th>Time on R server:</th><td title=\"rApacheServe 0.92s (pre 0.00s, post 0.00s) httpget_code() setup for eval 0.00s session$eval 0.90s (pre 0.00s, post 0.09s) unexplained 0.02s apparmor forking (pre 0.03s, post 0.00s)\">0.92s</td></tr>\r\n<tr><th>Time evaluating code:</th><td>0.77s</td></tr>\r\n<tr><th>Bytes sent:</th><td>2,598</td></tr>\r\n<tr><th>Bytes received:</th><td>15,810</td></tr>\r\n</table>\r\n</div>","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-ec29d9b70b75de54d568\" 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-ec29d9b70b75de54d568\">{\"x\":{\"html\":\"<table class = \\\"table table-condensed\\\"style = \\\"margin:0; border-bottom: 2px solid; border-top: 2px solid; font-size:90%;\\\">\\n<caption><h3 class=\\\".h3\\\" style=\\\"color:#3E7DCC; text-align:left; margin-top:0px; margin-bottom:0\\\">Linear Regression: sales\\u003c/h3>\\n<caption style=\\\"caption-side:bottom;font-style:italic; font-size:90%;\\\">n = 9 cases used in estimation; R-squared: 0.9786; Correct predictions: 88.89%; AIC: 111.47; \\u003c/caption>\\u003c/caption>\\n <thead>\\n <tr>\\n <th style=\\\"text-align:left;\\\"> \\u003c/th>\\n <th style=\\\"text-align:right;\\\"> Estimate \\u003c/th>\\n <th style=\\\"text-align:right;\\\"> Standard Error \\u003c/th>\\n <th style=\\\"text-align:right;\\\"> <span style='font-style:italic;'>t\\u003c/span> \\u003c/th>\\n <th style=\\\"text-align:right;\\\"> <span style='font-style:italic;'>p\\u003c/span> \\u003c/th>\\n \\u003c/tr>\\n \\u003c/thead>\\n<tbody>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> (Intercept) \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"color:blue\\\">313.39\\u003c/span> \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> 109.91 \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; font-weight: bold; background-color: #b6d4f8\\\">2.85\\u003c/span> \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"font-weight: bold\\\">.025\\u003c/span> \\u003c/td>\\n \\u003c/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> advertising \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"color:blue\\\">23.64\\u003c/span> \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> 1.32 \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: block; padding: 0 4px; border-radius: 4px; font-weight: bold; background-color: #80b4f4\\\">17.89\\u003c/span> \\u003c/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"font-weight: bold\\\">&lt; .001\\u003c/span> \\u003c/td>\\n \\u003c/tr>\\n\\u003c/tbody>\\n\\u003c/table>\"},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-ec29d9b70b75de54d568\">{\"viewer\":{\"width\":\"100%\",\"height\":350,\"padding\":15,\"fill\":false},\"browser\":{\"width\":\"100%\",\"height\":500,\"padding\":0,\"fill\":false}}</script>","htmlwidget-head":"{\"stylesheets\":[\"https://rserverhtmlwidgetasset.azureedge.net/bootstrap.min-eb19ad78829540621a18956d949c048b.css\"],\"javascript\":[\"https://rserverhtmlwidgetasset.azureedge.net/jquery.min-91a24ea414e8c447d647cecab86866c2.js\",\"https://rserverhtmlwidgetasset.azureedge.net/bootstrap.min-326d184c3c13feede563e4adcb5ff2a0.js\",\"https://rserverhtmlwidgetasset.azureedge.net/html5shiv.min-e70767555a95c48c08833356d362ccef.js\",\"https://rserverhtmlwidgetasset.azureedge.net/respond.min-4255ee1a060b15cb2432d0a497a6d510.js\",\"https://rserverhtmlwidgetasset.azureedge.net/htmlwidgets-d2ab507a7e7d3e3d7c2178bda9d4c762.js\",\"https://rserverhtmlwidgetasset.azureedge.net/formattable_widget-d2927ec9dec4a568bd3f4a62041c0ddb.js\"],\"attachments\":[]}","message":"","warning":"","visible":"yes"},"secondsTaken":1.1010476,"updated":"2017-03-01T02:54:10.4539442Z","lastUpdatedMessage":null,"executedCode":"library(flipRegression)\nif(!(formType == \"Linear\") || formMissing == \"Use partial data (pairwise correlations)\" || formMissing == \"Multiple imputation\")\n formRobustSE = FALSE\nif(formMissing != \"Multiple imputation\")\n formAuxiliaryVariables = NULL\nglm <- Regression(sales ~ advertising, weights = QPopulationWeight, subset = QFilter, missing = formMissing, output = formOutput, robust.se = formRobustSE, type = formType, show.labels = !formNames, auxiliary = formAuxiliaryVariables)","lastSavedCode":"library(flipRegression)\nif(!(formType == \"Linear\") || formMissing == \"Use partial data (pairwise correlations)\" || formMissing == \"Multiple imputation\")\n formRobustSE = FALSE\nif(formMissing != \"Multiple imputation\")\n formAuxiliaryVariables = NULL\nglm <- Regression(sales ~ advertising, weights = QPopulationWeight, subset = QFilter, missing = formMissing, output = formOutput, robust.se = formRobustSE, type = formType, show.labels = !formNames, auxiliary = formAuxiliaryVariables)","highlightedCodeSpans":[{"start":29,"length":8,"index":4},{"start":54,"length":11,"index":4},{"start":115,"length":11,"index":4},{"start":181,"length":11,"index":4},{"start":271,"length":5,"index":1},{"start":279,"length":11,"index":1},{"start":302,"length":17,"index":6},{"start":330,"length":7,"index":6},{"start":349,"length":11,"index":4},{"start":371,"length":10,"index":4},{"start":416,"length":8,"index":4},{"start":441,"length":9,"index":4}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":true,"guiControls":{"Code":"form.dropBox({label: \"Outcome\", \n types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formOutcomeVariable\"})\nform.dropBox({label: \"Predictors\",\n types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formPredictorVariables\", \n multi:true})\nvar formType = form.comboBox({label: \"Type\", \n alternatives: [\"Linear\", \"Binary Logit\", \"Ordered Logit\", \"Multinomial Logit\", \"Poisson\", \"Quasi-Poisson\", \"NBD\"], \n name: \"formType\", default_value: \"Linear\"})\nvar formMissing = form.comboBox({label: \"Missing data\", \n alternatives: [\"Error if missing data\", \"Exclude cases with missing data\", \"Use partial data (pairwise correlations)\", \"Multiple imputation\"], \n name: \"formMissing\", default_value: \"Exclude cases with missing data\"})\nif(formMissing.getValue() == \"Multiple imputation\")\nform.dropBox({label: \"Auxiliary variables\",\n types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formAuxiliaryVariables\", \n required: false, \n multi:true})\nvar formOutput = form.comboBox({label: \"Output\", \n alternatives: [\"Summary\", \"R\", \"ANOVA\"], \n name: \"formOutput\", default_value: \"Summary\"})\nform.checkBox({label: \"Variable names\", name: \"formNames\", default_value: false})\nif((formType.getValue() == \"Linear\") && formMissing.getValue() != \"Use partial data (pairwise correlations)\" && formMissing.getValue() != \"Multiple imputation\")\n form.checkBox({label: \"Robust standard errors\", name: \"formRobustSE\", default_value: false})\nform.setHeading((formOutput.getValue() == \"ANOVA\" ? \"ANOVA\" : \"Generalized Linear Model\" ) +\": \" + formType.getValue());","JSError":null,"JSErrorDetails":null,"Errors":null,"Controls":[{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Type":"Heading","Label":null,"Value":null,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":"Generalized Linear Model: Linear","Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formOutcomeVariable","Type":"DropBox","Label":"Outcome","Value":"eaef6812-2deb-4288-ac8e-e5f0df8edbda","Allowed":["eaef6812-2deb-4288-ac8e-e5f0df8edbda","6669e2d7-d66d-4eea-a707-1ade7441fd46"],"EmptyListMessage":null,"Multi":false,"Prompt":"Select an input which is of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","ErrorMessage":"Outcome: Outcome accepts only one input which is of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","Invalid":null,"Required":true,"AllowedTypes":["Variable: Numeric, Date, Money, Categorical, OrderedCategorical"],"MinInputs":1,"MaxInputs":1,"Height":1,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formPredictorVariables","Type":"DropBox","Label":"Predictors","Value":null,"Allowed":["eaef6812-2deb-4288-ac8e-e5f0df8edbda","6669e2d7-d66d-4eea-a707-1ade7441fd46"],"EmptyListMessage":null,"Multi":true,"Prompt":"Select at least one input which is of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","ErrorMessage":"Predictors: Predictors accepts only inputs which are of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","Invalid":null,"Required":true,"AllowedTypes":["Variable: Numeric, Date, Money, Categorical, OrderedCategorical"],"MinInputs":1,"MaxInputs":2147483647,"Height":4,"Duplicates":false,"Values":["6669e2d7-d66d-4eea-a707-1ade7441fd46"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formType","Type":"ComboBox","Label":"Type","Value":"Linear","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Linear","Binary Logit","Ordered Logit","Multinomial Logit","Poisson","Quasi-Poisson","NBD"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formMissing","Type":"ComboBox","Label":"Missing data","Value":"Exclude cases with missing data","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Error if missing data","Exclude cases with missing data","Use partial data (pairwise correlations)","Multiple imputation"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formOutput","Type":"ComboBox","Label":"Output","Value":"Summary","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Summary","R","ANOVA"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formNames","Type":"CheckBox","Label":"Variable names","Value":false,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":"left","Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formRobustSE","Type":"CheckBox","Label":"Robust standard errors","Value":false,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":"left","Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Type":null,"Label":null,"Value":null,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":true}]},"showDebug":false,"layout":"OutputOnly","size":{"Width":576,"Height":165},"vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Manual","warnSlow":false,"outputSize":{"Width":576,"Height":165},"Options":{"debugconsole":false,"codeposition":"OutputOnly","size":{"width":576,"height":165},"splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Manual","warn slow":false}}