/*! For license information please see dll.222.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[222],{3419:function(e,t,a){"use strict";a.r(t);var n=a(14),r=a.n(n),l=a(12),i=a.n(l),o=a(15),s=a.n(o),u=a(16),c=a.n(u),p=a(8),f=a.n(p),d=a(0),h=a.n(d),m=a(1),v=a.n(m),y=a(3420),b=a.n(y),g=a(102),T=a(137),w=a.n(T),R=a(975),E=a.n(R),k=a(191),K=a(359),q=a(190),_=a(992);function A(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 a,n=f()(e);if(t){var r=f()(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return c()(this,a)}}var D=function(e){s()(a,e);var t=A(a);function a(e){var n;return r()(this,a),(n=t.call(this,e)).calculateTest=function(e,t){for(var a=n.props,r=a.data,l=a.showDecision,i=r[e],o=r[t],s=[],u=[],c=0;c<i.length;c++)!Object(g.isPrimitive)(i[c])||w()(i[c])||E()(o[c])||""===o[c]||(u.push(i[c]),s.push('"'.concat(o[c],'"')));var p={variable:"Kruskal-Wallis Test",type:"Test",value:h.a.createElement("div",{style:{overflowX:"auto",width:"100%"}},h.a.createElement("label",null,"Kruskal Wallis Test of ",e," between ",t),h.a.createElement("pre",{style:{marginTop:10}},b()(u,{groups:s}).print({decision:l})))};n.props.logAction(q.DATA_EXPLORER_TESTS_KRUSKAL,{variable:e,grouping:t}),n.props.onCreated(p)},n}return i()(a,[{key:"render",value:function(){var e=this.props,t=e.quantitative,a=e.categorical;return h.a.createElement(K.default,{autoStart:!1,title:h.a.createElement("span",null,"Kruskal-Wallis Test",h.a.createElement(_.default,{title:"Kruskal-Wallis Test",content:"The Kruskal-Wallis rank sum test evaluates for multiple samples the null hypothesis that their medians are identical. The Kruskal-Wallis test is a nonparametric test which does not require the data to be normally distributed."})),label:"Calculate",onGenerate:this.calculateTest},h.a.createElement(k.default,{legend:"Variable:",defaultValue:t[0],options:t}),h.a.createElement(k.default,{legend:"Grouping Variable:",defaultValue:a[0],options:a}))}}]),a}(d.Component);D.propTypes={categorical:v.a.array.isRequired,quantitative:v.a.array.isRequired,data:v.a.object.isRequired,logAction:v.a.func,onCreated:v.a.func.isRequired,showDecision:v.a.bool},D.defaultProps={logAction:function(){},showDecision:!0},t.default=D}}]);