/*! For license information please see dll.227.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[227],{3429:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n.n(a),i=n(12),o=n.n(i),u=n(10),c=n.n(u),l=n(15),s=n.n(l),p=n(16),d=n.n(p),f=n(8),m=n.n(f),v=n(7),g=n.n(v),R=n(0),y=n.n(R),E=n(1),h=n.n(E),q=n(1100),_=n.n(q),P=n(138),w=n.n(P),b=n(201),A=n.n(b),L=n(203),M=n(207),O=n(368),S=n(1833),x=n(200),C=n(991);function D(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=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return d()(this,n)}}var G=function(e){s()(n,e);var t=D(n);function n(e){var a;return r()(this,n),a=t.call(this,e),g()(c()(a),"compute",(function(e,t,n,r){var i=y.a.createElement(S.default,{x:t,y:e,intercept:n,omitMissing:r,data:a.props.data,quantitative:a.props.quantitative,onPredict:function(e,t,n){var r=w()(a.props.data,1),i=a.props.quantitative.slice(),o="pred_lm"+n;r[o]=e,A()(i,o)||i.push(o),o="resid_lm"+n,A()(i,o)||i.push(o),r[o]=t,a.props.onGenerate(i,r)},onDiagnostics:a.props.onCreated}),o={y:e,x:t,intercept:n};a.props.logAction(x.DATA_EXPLORER_MULTIPLE_REGRESSION,o),a.props.onCreated(i)})),a}return o()(n,[{key:"render",value:function(){var e=this.props,t=e.categorical,n=e.quantitative;return y.a.createElement(O.default,{title:y.a.createElement("span",null,"Multiple Linear Regression",y.a.createElement(C.default,{title:"Multiple Linear Regression",content:"Predict a quantitative response variable using one or more explanatory variables."})),autoStart:!1,onGenerate:this.compute},y.a.createElement(L.default,{legend:"Outcome (Y):",options:n,defaultValue:n[0]}),y.a.createElement(L.default,{legend:"Predictors (X):",multi:!0,options:_()(n.concat(t)),defaultValue:n[1],closeMenuOnSelect:!1}),y.a.createElement(M.default,{legend:"Include intercept?",defaultValue:!0}),y.a.createElement(M.default,{legend:"Omit missing values",defaultValue:!1}))}}]),n}(R.Component);G.defaultProps={logAction:function(){}},G.propTypes={categorical:h.a.array.isRequired,quantitative:h.a.array.isRequired,data:h.a.object.isRequired,logAction:h.a.func,onGenerate:h.a.func.isRequired,onCreated:h.a.func.isRequired},t.default=G}}]);