/*! For license information please see dll.221.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[221],{3438:function(e,t,a){"use strict";a.r(t);var n=a(14),r=a.n(n),l=a(12),o=a.n(l),i=a(10),c=a.n(i),u=a(15),s=a.n(u),d=a(16),f=a.n(d),p=a(8),h=a.n(p),m=a(7),v=a.n(m),w=a(0),E=a.n(w),R=a(1),g=a.n(R),y=a(204),b=a(203),T=a(368),C=a(362),D=a(1821),_=a(200),V=a(991);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=h()(e);if(t){var r=h()(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return f()(this,a)}}var S=function(e){s()(a,e);var t=A(a);function a(e){var n;return r()(this,a),n=t.call(this,e),v()(c()(n),"calculateCorrTest",(function(e,t,a,r,l){var o=n.props,i=o.data,c=o.showDecision,u=E.a.createElement(D.default,{data:i,var1:e,var2:t,rho0:a,direction:r,alpha:l,showDecision:c});n.props.logAction(_.DATA_EXPLORER_TESTS_CORRTEST,{var1:e,var2:t,rho0:a,direction:r,alpha:l,showDecision:c}),n.props.onCreated(u)})),n}return o()(a,[{key:"render",value:function(){var e=this.props.quantitative;return E.a.createElement(T.default,{title:E.a.createElement("span",null,"Correlation Test",E.a.createElement(V.default,{title:"Correlation Test",content:"A test used to evaluate the Pearson correlation between two variables, which measures the linear association between them."})),label:"Calculate",autoStart:!1,onGenerate:this.calculateCorrTest},E.a.createElement(b.default,{legend:"Variable:",defaultValue:e[0],options:e}),E.a.createElement(b.default,{legend:"Variable:",defaultValue:e[1],options:e}),E.a.createElement(y.default,{legend:E.a.createElement(C.default,{raw:"\\rho_0"}),defaultValue:0,step:"any",min:-1,max:1}),E.a.createElement(b.default,{legend:"Direction:",defaultValue:"two-sided",options:["less","greater","two-sided"]}),E.a.createElement(y.default,{legend:E.a.createElement("span",null,"Significance level ",E.a.createElement(C.default,{raw:"\\alpha"})),defaultValue:.05,min:0,max:1,step:"any"}))}}]),a}(w.Component);S.propTypes={quantitative:g.a.array.isRequired,data:g.a.object.isRequired,logAction:g.a.func,onCreated:g.a.func.isRequired,showDecision:g.a.bool},S.defaultProps={logAction:function(){},showDecision:!0},t.default=S}}]);