/*! For license information please see dll.253.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[253],{3383:function(e,t,a){"use strict";a.r(t);var n=a(0),i=a.n(n),r=a(1),l=a.n(r),o=a(364),s=a.n(o),u=a(203),c=a.n(u),d=a(209),f=a(204),p=a(373),m=a(1837),g=a(200),v=a(966),E=function(e){var t=e.quantitative,a=e.categorical,n=e.t;return i.a.createElement(p.default,{title:i.a.createElement("span",null,e.t("Simple Linear Regression"),i.a.createElement(v.default,{title:e.t("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:function(t,a,n,r){var l=i.a.createElement(m.default,{y:t,x:a,group:n,omitMissing:r,data:e.data,onPredict:function(t,a,n){var i=s()(e.data,1),r=e.quantitative.slice(),l="pred_slm"+n;i[l]=t,c()(r,l)||r.push(l),l="resid_slm"+n,c()(r,l)||r.push(l),i[l]=a,e.onGenerate(r,i)},onDiagnostics:e.onCreated});e.logAction(g.DATA_EXPLORER_LINEAR_REGRESSION,{y:t,x:a,group:n,omitMissing:r}),e.onCreated(l)}},i.a.createElement(f.default,{legend:n("outcome-y"),defaultValue:t[0],options:t}),i.a.createElement(f.default,{legend:n("explanatory-variable"),defaultValue:t[1],options:t}),i.a.createElement(f.default,{legend:n("group-by"),options:a,clearable:!0,menuPlacement:"top"}),i.a.createElement(d.default,{legend:n("omit-missing"),defaultValue:!1}))};E.defaultProps={categorical:[],logAction:function(){}},E.propTypes={categorical:l.a.array,quantitative:l.a.array.isRequired,data:l.a.object.isRequired,logAction:l.a.func,onGenerate:l.a.func.isRequired,onCreated:l.a.func.isRequired},t.default=E},966:function(e,t,a){"use strict";a.r(t);var n=a(0),i=a.n(n),r=a(1),l=a.n(r),o=a(77),s=a(974),u=a(971),c=a(970),d=a(998),f=function(e){var t=i.a.createElement(s.default,{id:"popover-positioned-right"},i.a.createElement(u.default,null,e.title),i.a.createElement(c.default,null,e.content));return i.a.createElement(d.default,{trigger:["hover","focus"],placement:"left",rootClose:!0,overlay:t},i.a.createElement(o.default,{size:"sm",variant:"outline-secondary",className:"question-button"},i.a.createElement("div",{className:"fa fa-question"})))};f.propTypes={content:l.a.oneOfType([l.a.string,l.a.node]).isRequired,title:l.a.string.isRequired},t.default=f}}]);