{"size":{"Width":576,"Height":350},"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,"outputs":{"console":"<pre class='debug-source'>>library(flipMultivariates)\n</pre>\n<pre class='debug-source'>>options(width = 120)\n</pre>\n<pre class='debug-source'>>rf.2 <- RandomForest(age ~ workclass_cat + education_num + marital_cat + occupation_cat + relationship_cat + hrs_per_week + country_cat + income_cat, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, sort.by.importance = get0("formImportance", ifnotfound = FALSE))\n</pre>\r\n<div class=\"debug-summarystatistics\">\r\n<table>\r\n<tr><th>Total time:</th><td>35.94s</td></tr>\r\n<tr><th>Time on R server:</th><td title=\"rApacheServe 33.76s (pre 0.01s, post 0.00s) httpget_code() setup for eval 0.00s session$eval 8.86s (pre 0.00s, post 1.58s) unexplained 24.90s apparmor forking (pre 0.00s, post 0.00s)\">33.76s</td></tr>\r\n<tr><th>Time evaluating code:</th><td>7.23s</td></tr>\r\n<tr><th>Bytes sent:</th><td>66,406</td></tr>\r\n<tr><th>Bytes received:</th><td>39,575,626</td></tr>\r\n</table>\r\n</div>","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-20085d76ec519cc842ec\" 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-20085d76ec519cc842ec\">{\"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\\\">Random Forest: age<\\/h3>\\n<h5 class=\\\".h5\\\" style=\\\"color:#888888; text-align:left; margin-top:5px; margin-bottom:0\\\">R-squared: 0.429<\\/h5>\\n<caption style=\\\"caption-side:bottom;font-style:italic; font-size:90%;\\\">n = 2000 cases used in estimation;<\\/caption><\\/caption>\\n <thead>\\n <tr>\\n <th style=\\\"text-align:left;\\\"> <\\/th>\\n <th style=\\\"text-align:right;\\\"> %IncMSE <\\/th>\\n <th style=\\\"text-align:right;\\\"> Importance (IncNodePurity) <\\/th>\\n <\\/tr>\\n <\\/thead>\\n<tbody>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> marital <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 100.00%\\\">‎66.638<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 100.00%\\\">‎81,058.44<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> relationship <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 57.50%\\\">‎38.314<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 60.34%\\\">‎48,914.43<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> hrs_per_week <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 26.85%\\\">‎17.893<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 42.25%\\\">‎34,250.81<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> occupation <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 19.03%\\\">‎12.683<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 39.85%\\\">‎32,301.32<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> education_num <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 15.66%\\\">‎10.438<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 30.97%\\\">‎25,106.84<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> workclass <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 16.50%\\\">‎10.998<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 25.55%\\\">‎20,707.42<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> country <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 3.91%\\\">‎2.604<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 16.81%\\\">‎13,623.81<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> income <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 14.98%\\\">‎9.979<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #DDDDDD; width: 10.87%\\\">‎8,807.95<\\/span> <\\/td>\\n <\\/tr>\\n<\\/tbody>\\n<\\/table>\"},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-20085d76ec519cc842ec\">{\"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-cd5c5716917807e1b69e2493221698b2.js\",\"https://rserverhtmlwidgetasset.azureedge.net/formattable_widget-d2927ec9dec4a568bd3f4a62041c0ddb.js\"],\"attachments\":[],\"widget-cannot-re-render\":true}","message":"","warning":""},"secondsTaken":35.9367685,"updated":"2018-03-29T05:44:00.5190712Z","lastUpdatedMessage":null,"executedCode":"library(flipMultivariates)\noptions(width = 120)\nrf.2 <- RandomForest(age ~ workclass_cat + education_num + marital_cat + occupation_cat + relationship_cat + hrs_per_week + country_cat + income_cat, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, sort.by.importance = get0(\"formImportance\", ifnotfound = FALSE))","lastSavedCode":"library(flipMultivariates)\noptions(width = 120)\nrf.2 <- RandomForest(age ~ workclass_cat + education_num + marital_cat + occupation_cat + relationship_cat + hrs_per_week + country_cat + income_cat, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, sort.by.importance = get0(\"formImportance\", ifnotfound = FALSE))","highlightedCodeSpans":[{"start":69,"length":3,"index":1},{"start":75,"length":13,"index":0},{"start":91,"length":13,"index":1},{"start":107,"length":11,"index":0},{"start":121,"length":14,"index":0},{"start":138,"length":16,"index":0},{"start":157,"length":12,"index":1},{"start":172,"length":11,"index":0},{"start":186,"length":10,"index":0},{"start":208,"length":17,"index":6},{"start":236,"length":7,"index":6},{"start":273,"length":11,"index":4},{"start":295,"length":10,"index":4},{"start":322,"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.setHeading('Random Forest');\nform.dropBox({label: \"Outcome\", \n types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formOutcomeVariable\"});\nform.dropBox({label: \"Predictor(s)\",\n types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formPredictorVariables\", \n multi:true});\nvar output = form.comboBox({label: \"Output\", \n alternatives: [\"Importance\", \"Prediction-Accuracy Table\", \"Detail\"], name: \"formOutput\", default_value: \"Importance\"}).getValue();\nform.comboBox({label: \"Missing data\", \n alternatives: [\"Error if missing data\", \"Exclude cases with missing data\"], name: \"formMissing\", default_value: \"Exclude cases with missing data\"});\nform.checkBox({label: \"Variable names\", name: \"formNames\", default_value: false});\nif (output == \"Importance\")\n form.checkBox({label: \"Sort by importance\", name: \"formImportance\", default_value: true});","JSError":null,"JSErrorDetails":null,"ControlDefinitionErrors":null,"InputValidationErrors":null,"Controls":[{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Page":null,"Group":null,"Type":"Heading","Label":null,"LabelEmphasised":false,"Value":null,"Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"OwnerRItemGuid":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":"Random Forest","Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formOutcomeVariable","Page":null,"Group":null,"Type":"DropBox","Label":"Outcome","LabelEmphasised":false,"Value":"e58376fd-606a-4178-93ae-9a7933f88859","Allowed":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"],"OwnerRItemGuid":"f42447fb-37a1-4ed7-ab71-ad8672193558","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","Page":null,"Group":null,"Type":"DropBox","Label":"Predictor(s)","LabelEmphasised":false,"Value":null,"Allowed":null,"Multi":true,"Prompt":"Select at least one input which is of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","ErrorMessage":"Predictor(s): Predictor(s) 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"],"OwnerRItemGuid":"f42447fb-37a1-4ed7-ab71-ad8672193558","MinInputs":1,"MaxInputs":2147483647,"Height":4,"Duplicates":false,"Values":["ee26d8cd-ea12-4823-9a81-02a258615378","feb02b52-89a5-4e14-878e-a93ae591aa62","8f6a1569-c5da-4222-ac7b-0c3692d2aa37","d8c7bbc7-e072-4ff1-a485-73ba43ed8173","6f88919b-6ce5-4d20-9eb2-5cdb945d385a","0aea150b-33f6-4bd5-8b45-4fb2938e681e","b5aa556f-08bb-496e-9412-ce19315efce7","b323f021-1eed-4406-af33-fd0b536b9158"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formOutput","Page":null,"Group":null,"Type":"ComboBox","Label":"Output","LabelEmphasised":false,"Value":"Importance","Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"OwnerRItemGuid":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Importance","Prediction-Accuracy Table","Detail"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formMissing","Page":null,"Group":null,"Type":"ComboBox","Label":"Missing data","LabelEmphasised":false,"Value":"Exclude cases with missing data","Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"OwnerRItemGuid":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Error if missing data","Exclude cases with missing data"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formNames","Page":null,"Group":null,"Type":"CheckBox","Label":"Variable names","LabelEmphasised":false,"Value":false,"Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"OwnerRItemGuid":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":"formImportance","Page":null,"Group":null,"Type":"CheckBox","Label":"Sort by importance","LabelEmphasised":false,"Value":true,"Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"OwnerRItemGuid":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,"Page":null,"Group":null,"Type":null,"Label":null,"LabelEmphasised":false,"Value":null,"Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"OwnerRItemGuid":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}]},"calculating":"Idle","showDebug":false,"layout":"OutputOnly","vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Manual","warnSlow":false,"Options":{"debugconsole":false,"codeposition":"OutputOnly","splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Manual","warn slow":false}}