/*! For license information please see dll.224.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[224],{3417:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n.n(a),c=n(12),o=n.n(c),i=n(15),l=n.n(i),u=n(16),s=n.n(u),f=n(8),d=n.n(f),p=n(0),h=n.n(p),v=n(1),m=n.n(v),y=n(191),E=n(359),b=n(420),g=n(190),w=n(993);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=d()(e);if(t){var r=d()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return s()(this,n)}}var C=function(e){l()(n,e);var t=R(n);function n(e){var a;return r()(this,n),(a=t.call(this,e)).calculateChisquareTest=function(e,t){var n=a.props.data,r=n[e].map((function(e){return'"'.concat(e,'"')})),c=n[t].map((function(e){return'"'.concat(e,'"')})),o={variable:"Chisquare Test for Independence",type:"Test",value:h.a.createElement("div",{style:{overflowX:"auto",width:"100%"}},h.a.createElement("label",null,"Hypothesis test for independence between ",e," and ",t,":"),h.a.createElement(b.default,{code:"\n\t\t\t\t\t`".concat(e,"` = c(").concat(r,")\n\t\t\t\t\t`").concat(t,"` = c(").concat(c,")\n\t\t\t\t\tchisq.test( `").concat(e,"`, `").concat(t,"` )")}))};a.props.logAction(g.DATA_EXPLORER_TESTS_CHISQUARE,{var1:e,var2:t}),a.props.onCreated(o)},a}return o()(n,[{key:"render",value:function(){var e=this.props.categorical;return h.a.createElement(E.default,{title:h.a.createElement("span",null,"Chi-square Independence Test",h.a.createElement(w.default,{title:"Chi-square Independence Test",content:"A test determining if there is a significant association between two categorical variables."})),label:"Calculate",autoStart:!1,onGenerate:this.calculateChisquareTest},h.a.createElement(y.default,{legend:"Variable:",defaultValue:e[0],options:e}),h.a.createElement(y.default,{legend:"Second Variable:",defaultValue:e[1],options:e}))}}]),n}(p.Component);C.propTypes={categorical:m.a.array.isRequired,data:m.a.object.isRequired,logAction:m.a.func,onCreated:m.a.func.isRequired},C.defaultProps={logAction:function(){}},t.default=C}}]);