/*! For license information please see dll.231.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[231],{3431:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n.n(a),i=n(12),o=n.n(i),s=n(10),l=n.n(s),c=n(15),u=n.n(c),p=n(16),f=n.n(p),d=n(8),m=n.n(d),g=n(7),v=n.n(g),R=n(0),h=n.n(R),y=n(1),E=n.n(y),b=n(138),_=n.n(b),w=n(201),q=n.n(w),S=n(207),A=n(203),x=n(368),G=n(1835),P=n(200),V=n(991);function X(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 f()(this,n)}}var C=function(e){u()(n,e);var t=X(n);function n(e){var a;return r()(this,n),a=t.call(this,e),v()(l()(a),"fitRegression",(function(e,t,n,r){var i=h.a.createElement(G.default,{y:e,x:t,group:n,omitMissing:r,data:a.props.data,onPredict:function(e,t,n){var r=_()(a.props.data,1),i=a.props.quantitative.slice(),o="pred_slm"+n;r[o]=e,q()(i,o)||i.push(o),o="resid_slm"+n,q()(i,o)||i.push(o),r[o]=t,a.props.onGenerate(i,r)},onDiagnostics:a.props.onCreated});a.props.logAction(P.DATA_EXPLORER_LINEAR_REGRESSION,{y:e,x:t,group:n,omitMissing:r}),a.props.onCreated(i)})),a}return o()(n,[{key:"render",value:function(){var e=this.props,t=e.quantitative,n=e.categorical;return h.a.createElement(x.default,{title:h.a.createElement("span",null,"Simple Linear Regression",h.a.createElement(V.default,{title:"Simple Linear Regression",content:"Statistical model which estimates a best-fit line for a response variable of interest (Y) given exactly one predictor variable (X). The line is determined by its intercept (Y-value at X = 0) and slope (the increase in Y associated with a unit increase of X)."})),autoStart:!1,onGenerate:this.fitRegression},h.a.createElement(A.default,{legend:"Response Variable (Y):",defaultValue:t[0],options:t}),h.a.createElement(A.default,{legend:"Explanatory Variable (X):",defaultValue:t[1],options:t}),h.a.createElement(A.default,{legend:"Group By:",options:n,clearable:!0,menuPlacement:"top"}),h.a.createElement(S.default,{legend:"Omit missing values",defaultValue:!1}))}}]),n}(R.Component);C.defaultProps={categorical:[],logAction:function(){}},C.propTypes={categorical:E.a.array,quantitative:E.a.array.isRequired,data:E.a.object.isRequired,logAction:E.a.func,onGenerate:E.a.func.isRequired,onCreated:E.a.func.isRequired},t.default=C}}]);