{"size":{"Width":576,"Height":211},"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(flipTransformations)\n</pre>\n<pre class='debug-source'>>library(flipFormat)\n</pre>\n<pre class='debug-source'>>data <- ProcessQVariables(data.frame(Q28, Q2))\n</pre>\n<pre class='debug-source'>>if (is.factor(formOutcomeVariable))\n data[,1] <- AsNumeric(data[,1], binary=FALSE)\n</pre>\n<pre class='debug-warning'>Data has been automatically converted to numeric. Values are assigned in the order of the categories: 1, 2, 3... To use alternative numeric values you should instead transform the data prior including it in this analysis (e.g., by changing its structure). Q28. Exercise frequency (Q28)</pre>\n<pre class='debug-source'>>data[,2] <- CreatingBinaryVariableIfNecessary(data, names(data)[2])\n</pre>\n<pre class='debug-source'>>data$subset <- QFilter\n</pre>\n<pre class='debug-source'>>if (!is.null(QCalibratedWeight))\n data <- AdjustDataToReflectWeights(data, QCalibratedWeight)\n</pre>\n<pre class='debug-source'>>formula <- Q28 ~ Q2\n</pre>\n<pre class='debug-source'>>\n</pre>\n<pre class='debug-source'>>test.output <- var.test(formula, alternative='two.sided', conf.level=.95, data=data, subset = subset)\n</pre>\n<pre class='debug-source'>>variance.f.test <- if (formOutput == "Summary") {\n test.output$estimate <- NULL\n decimal.places <- if (formDecimals) 8 else NULL\n SignificanceTest(test.output, "F-Test to Compare Two Variances",\n list(formOutcomeVariable, formGroupVariable),\n filter = QFilter, weight = QCalibratedWeight,\n show.labels = !formNames, decimal.places = decimal.places,\n resample = TRUE)\n} else\n test.output\n</pre>\r\n<div class=\"debug-summarystatistics\"><table>\r\n<tr><th>Started:</th><td class=utc-time>2018-08-29T03:31:26.560Z</td></tr>\r\n<tr><th>Finished:</th><td class=utc-time>2018-08-29T03:31:26.560Z</td></tr>\r\n<tr><th>Total time:</th><td>0.54s</td></tr>\r\n<tr><th>Time executing code:</th><td title=\"0.04s\">0.50s</td></tr>\r\n<tr><th>Other overhead on R server:</th><td>0.33s</td></tr>\r\n<tr><th>Time spent transferring data:</th><td>0.04s</td></tr>\r\n<tr><th>Data sent to R server:</th><td>3.7KB</td></tr>\r\n<tr><th>Data received from R server:</th><td>7.9KB</td></tr>\r\n</table></div>","warning":"Data has been automatically converted to numeric. Values are assigned in the order of the categories: 1, 2, 3... To use alternative numeric values you should instead transform the data prior including it in this analysis (e.g., by changing its structure). Q28. Exercise frequency (Q28)","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-47ef90edd77f3ec21f2b\" 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-47ef90edd77f3ec21f2b\">{\"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\\\">F-Test to Compare Two Variances<\\/h3>\\n<h4 class=\\\".h4\\\" style=\\\"color:#3E7DCC; text-align:left; margin-top:5px; margin-bottom:0\\\">Not significant: p-value = 0.30<\\/h4>\\n<h5 class=\\\".h5\\\" style=\\\"color:#888888; text-align:left; margin-top:5px; margin-bottom:0\\\">Q28. Exercise frequency<\\/h5>\\n<h5 class=\\\".h5\\\" style=\\\"color:#888888; text-align:left; margin-top:5px; margin-bottom:0\\\">by Q2. Gender <\\/h5>\\n<caption style=\\\"caption-side:bottom;font-style:italic; font-size:90%;\\\">n = 327 cases used in estimation; null hypothesis: ratio of variances is equal to 1;<\\/caption>\\n <thead>\\n <tr>\\n <th style=\\\"text-align:right;\\\"> F <\\/th>\\n <th style=\\\"text-align:right;\\\"> num df <\\/th>\\n <th style=\\\"text-align:right;\\\"> denom df <\\/th>\\n <th style=\\\"text-align:right;\\\"> p-value <\\/th>\\n <th style=\\\"text-align:right;\\\"> Lower 95%<br>conf. int. <\\/th>\\n <th style=\\\"text-align:right;\\\"> Upper 95%<br>conf. int. <\\/th>\\n <\\/tr>\\n <\\/thead>\\n<tbody>\\n <tr>\\n <td style=\\\"text-align:right;\\\"> 0.85 <\\/td>\\n <td style=\\\"text-align:right;\\\"> 159 <\\/td>\\n <td style=\\\"text-align:right;\\\"> 166 <\\/td>\\n <td style=\\\"text-align:right;\\\"> 0.30 <\\/td>\\n <td style=\\\"text-align:right;\\\"> 0.62 <\\/td>\\n <td style=\\\"text-align:right;\\\"> 1.16 <\\/td>\\n <\\/tr>\\n<\\/tbody>\\n<\\/table>\"},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-47ef90edd77f3ec21f2b\">{\"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-63e52244789ab8f6e3a78818886e7085.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-917a66c6e5036eb1bfd1fb672a82635a.js\",\"https://rserverhtmlwidgetasset.azureedge.net/formattable_widget-d2927ec9dec4a568bd3f4a62041c0ddb.js\"],\"attachments\":[],\"widget-cannot-re-render\":true}","message":""},"secondsTaken":0.5369366,"updated":"2018-08-29T03:31:26.5607972Z","lastUpdatedMessage":null,"executedCode":"library(flipTransformations)\nlibrary(flipFormat)\ndata <- ProcessQVariables(data.frame(Q28, Q2))\nif (is.factor(formOutcomeVariable))\n data[,1] <- AsNumeric(data[,1], binary=FALSE)\ndata[,2] <- CreatingBinaryVariableIfNecessary(data, names(data)[2])\ndata$subset <- QFilter\nif (!is.null(QCalibratedWeight))\n data <- AdjustDataToReflectWeights(data, QCalibratedWeight)\nformula <- Q28 ~ Q2\n\ntest.output <- var.test(formula, alternative='two.sided', conf.level=.95, data=data, subset = subset)\nvariance.f.test <- if (formOutput == \"Summary\") {\n test.output$estimate <- NULL\n decimal.places <- if (formDecimals) 8 else NULL\n SignificanceTest(test.output, \"F-Test to Compare Two Variances\",\n list(formOutcomeVariable, formGroupVariable),\n filter = QFilter, weight = QCalibratedWeight,\n show.labels = !formNames, decimal.places = decimal.places,\n resample = TRUE)\n} else\n test.output","lastSavedCode":"library(flipTransformations)\nlibrary(flipFormat)\ndata <- ProcessQVariables(data.frame(Q28, Q2))\nif (is.factor(formOutcomeVariable))\n data[,1] <- AsNumeric(data[,1], binary=FALSE)\ndata[,2] <- CreatingBinaryVariableIfNecessary(data, names(data)[2])\ndata$subset <- QFilter\nif (!is.null(QCalibratedWeight))\n data <- AdjustDataToReflectWeights(data, QCalibratedWeight)\nformula <- Q28 ~ Q2\n\ntest.output <- var.test(formula, alternative='two.sided', conf.level=.95, data=data, subset = subset)\nvariance.f.test <- if (formOutput == \"Summary\") {\n test.output$estimate <- NULL\n decimal.places <- if (formDecimals) 8 else NULL\n SignificanceTest(test.output, \"F-Test to Compare Two Variances\",\n list(formOutcomeVariable, formGroupVariable),\n filter = QFilter, weight = QCalibratedWeight,\n show.labels = !formNames, decimal.places = decimal.places,\n resample = TRUE)\n} else\n test.output","highlightedCodeSpans":[{"start":86,"length":3,"index":0},{"start":91,"length":2,"index":0},{"start":110,"length":19,"index":4},{"start":265,"length":7,"index":6},{"start":286,"length":17,"index":6},{"start":351,"length":17,"index":6},{"start":381,"length":3,"index":0},{"start":387,"length":2,"index":0},{"start":516,"length":10,"index":4},{"start":602,"length":12,"index":4},{"start":723,"length":19,"index":4},{"start":744,"length":17,"index":4},{"start":794,"length":7,"index":6},{"start":812,"length":17,"index":6},{"start":867,"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(\"F-Test to Compare Two Variances\");\nform.dropBox({label: \"Outcome\", types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formOutcomeVariable\", prompt: \"Select the Variable to analyse\"});\nform.dropBox({label: \"Groups\", types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formGroupVariable\", prompt: \"Select the Variable specifying the group that each observation comes from\"});\nvar formOutput = form.comboBox({label: \"Output\", alternatives: [\"Summary\", \"R\"], \n name: \"formOutput\", default_value: \"Summary\", prompt: \"Select the output type\"});\nif (formOutput.getValue() == \"Summary\")\n{\n form.checkBox({label: \"Variable names\", name: \"formNames\", default_value: false,\n prompt: \"Display names instead of labels\"});\n form.checkBox({label: \"More decimal places\", name: \"formDecimals\", default_value: false,\n prompt: \"Display numeric values with eight decimal places\"});\n}","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":"F-Test to Compare Two Variances","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":"474ad19b-a907-4bcc-80ae-92a93b35d11f","Allowed":null,"Multi":false,"Prompt":"Select the Variable to analyse","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":"a2b0105e-a443-4c42-9411-f1c307bbd606","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":"formGroupVariable","Page":null,"Group":null,"Type":"DropBox","Label":"Groups","LabelEmphasised":false,"Value":"79e8a702-536b-4cdd-870e-20acef64d6af","Allowed":null,"Multi":false,"Prompt":"Select the Variable specifying the group that each observation comes from","ErrorMessage":"Groups: Groups 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":"a2b0105e-a443-4c42-9411-f1c307bbd606","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":"formOutput","Page":null,"Group":null,"Type":"ComboBox","Label":"Output","LabelEmphasised":false,"Value":"Summary","Allowed":null,"Multi":false,"Prompt":"Select the output type","ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"OwnerRItemGuid":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Summary","R"],"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":"Display names instead of labels","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":"formDecimals","Page":null,"Group":null,"Type":"CheckBox","Label":"More decimal places","LabelEmphasised":false,"Value":false,"Allowed":null,"Multi":false,"Prompt":"Display numeric values with eight decimal places","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}}