jQuery.template("Tmpl-knoema-page-regression-empty",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="empty-gadget '),typeof mode!="undefined"&&mode!=null&&__.push($.encode(typeof mode=="function"?mode.call($item):mode)),__.push('">   <table style="width: 100%; height: 100%">    <tbody>     <tr>      <td>       '),typeof(mode=="criterial")!="undefined"&&mode=="criterial"!=null&&(typeof(mode=="criterial")=="function"?(mode=="criterial").call($item):mode=="criterial")&&(__.push('       <span class="add-content">'),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/page/regression-empty.htm","Please [select|href=#|id=add-criterial-component-from-empty] dependent variable for your regression model.")),__.push("<\/span>       ")),__.push("       "),typeof(mode=="component")!="undefined"&&mode=="component"!=null&&(typeof(mode=="component")=="function"?(mode=="component").call($item):mode=="component")&&(__.push('       <span class="add-content">'),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/page/regression-empty.htm","Please [add|href=#|id=add-component-from-empty] factor for your regression model.")),__.push("<\/span>       ")),__.push("      <\/td>     <\/tr>    <\/tbody>   <\/table>  <\/div>");return __});jQuery.template("Tmpl-knoema-page-regression-info-layout",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<ul id="tabs">   <li><a href="#chart">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-info-layout.htm","Chart"))),__.push('<\/a><\/li>   <li><a href="#table">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-info-layout.htm","Table"))),__.push('<\/a><\/li>   <li><a href="#coefficients">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-info-layout.htm","Coefficients"))),__.push('<\/a><\/li>  <\/ul>    <div id="hash-chart" class="tab"><div id="criterial-chart"><\/div><\/div>  <div id="hash-table" class="tab"><div id="results-as-table"><\/div><\/div>  <div id="hash-coefficients" class="tab"><div id="statistical-panel"><\/div><\/div>');return __});jQuery.template("Tmpl-knoema-page-regression-statistic-panel",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="common-coeff">   <table>    <thead>     <th>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Coefficient"))),__.push("<\/th>     <th>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Value"))),__.push("<\/th>    <\/thead>    <tbody>     <tr>      <td><b>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Residual standard error"))),__.push("<\/b><\/td>      <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.residualStdError,4))),__.push("<\/td>     <\/tr>     <tr>      <td><b>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Multiple R-squared"))),__.push("<\/b><\/td>      <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.multipleRSquared,2))),__.push("<\/td>     <\/tr>     <tr>      <td><b>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Adjusted R-squared"))),__.push("<\/b><\/td>      <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.adjustedRSquared,2))),__.push("<\/td>     <\/tr>     <tr>      <td><b>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","F-statistic"))),__.push("<\/b><\/td>      <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.fStatistic,2))),__.push("<\/td>     <\/tr>     <tr>      <td><b>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","P-value"))),__.push("<\/b><\/td>      <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.pValue,4))),__.push("<\/td>     <\/tr>     <tr>      <td><b>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Akaike's criterion"))),__.push("<\/b><\/td>      <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.aIC,2))),__.push("<\/td>     <\/tr>     <tr>      <td><b>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Schwarz's Bayesian criterion"))),__.push("<\/b><\/td>      <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.bIC,2))),__.push('<\/td>     <\/tr>    <\/tbody>   <\/table>  <\/div>    <div id="estimate-coeff">   <table>    <thead>     <tr>      <th><\/th>      <th>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Std. error"))),__.push("<\/th>      <th>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","t value"))),__.push("<\/th>      <th>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/page/regression-statistic-panel.htm","Degree sign."))),__.push("<\/th>     <\/tr>    <\/thead>    <\/tbody>    "),typeof names!="undefined"&&names!=null&&$.each(typeof names=="function"?names.call($item):names,function(i,name){with(this)__.push("    "),typeof coeff.stdError[i]!="undefined"&&coeff.stdError[i]!=null&&(typeof coeff.stdError[i]=="function"?coeff.stdError[i].call($item):coeff.stdError[i])&&(__.push('    <tr>     <td><b title="'),typeof name.value!="undefined"&&name.value!=null&&__.push($.encode(typeof name.value=="function"?name.value.call($item):name.value)),__.push('">'),typeof name.key!="undefined"&&name.key!=null&&__.push($.encode(typeof name.key=="function"?name.key.call($item):name.key)),__.push("<\/b><\/td>     <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.stdError[i],3))),__.push("<\/td>     <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.tValue[i],2))),__.push("<\/td>     <td>"),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(coeff.degreeSignificance[i],4))),__.push("<\/td>    <\/tr>    ")),__.push("    ")}),__.push('    <\/tbody>   <\/table>  <\/div>    <div id="correlation-coeff">   <table>    <tbody>     <tr>      <td><\/td>      '),typeof names!="undefined"&&names!=null&&$.each(typeof names=="function"?names.call($item):names,function(i,name){with(this)__.push("       "),typeof(i>0)!="undefined"&&i>0!=null&&(typeof(i>0)=="function"?(i>0).call($item):i>0)&&(__.push('       <td><b title="'),typeof name.value!="undefined"&&name.value!=null&&__.push($.encode(typeof name.value=="function"?name.value.call($item):name.value)),__.push('">'),typeof name.key!="undefined"&&name.key!=null&&__.push($.encode(typeof name.key=="function"?name.key.call($item):name.key)),__.push("<\/b><\/td>       ")),__.push("      ")}),__.push("     <\/tr>     "),typeof coeff.factorsCorrelation!="undefined"&&coeff.factorsCorrelation!=null&&$.each(typeof coeff.factorsCorrelation=="function"?coeff.factorsCorrelation.call($item):coeff.factorsCorrelation,function(i){with(this)__.push('     <tr>      <td><b title="'),typeof names[i+1].value!="undefined"&&names[i+1].value!=null&&__.push($.encode(typeof names[i+1].value=="function"?names[i+1].value.call($item):names[i+1].value)),__.push('">'),typeof names[i+1].key!="undefined"&&names[i+1].key!=null&&__.push($.encode(typeof names[i+1].key=="function"?names[i+1].key.call($item):names[i+1].key)),__.push("<\/b><\/td>        "),typeof coeff.factorsCorrelation[i]!="undefined"&&coeff.factorsCorrelation[i]!=null&&$.each(typeof coeff.factorsCorrelation[i]=="function"?coeff.factorsCorrelation[i].call($item):coeff.factorsCorrelation[i],function(n,value){with(this)__.push("       <td>        "),typeof value!="undefined"&&value!=null&&(typeof value=="function"?value.call($item):value)&&(__.push("         "),typeof Knoema.Utils.roundToNDecimalPlaces!="undefined"&&Knoema.Utils.roundToNDecimalPlaces!=null&&__.push($.encode(Knoema.Utils.roundToNDecimalPlaces(value,2))),__.push("        ")),__.push("       <\/td>      ")}),__.push("     <\/tr>     ")}),__.push("    <\/tbody>   <\/table>  <\/div>");return __});jQuery.template("Tmpl-knoema-page-regression-table",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<table>   <thead>    <tr>     <td><\/td>     "),typeof labelsModel!="undefined"&&labelsModel!=null&&$.each(typeof labelsModel=="function"?labelsModel.call($item):labelsModel,function(n,label){with(this)__.push("      <td><b>"),typeof Knoema.Utils.uiFormattedDate!="undefined"&&Knoema.Utils.uiFormattedDate!=null&&__.push($.encode(Knoema.Utils.uiFormattedDate(new Date(label),frequency))),__.push("<\/b><\/td>     ")}),__.push("       "),typeof labelsPredict!="undefined"&&labelsPredict!=null&&$.each(typeof labelsPredict=="function"?labelsPredict.call($item):labelsPredict,function(n,label){with(this)__.push("      <td><b>"),typeof Knoema.Utils.uiFormattedDate!="undefined"&&Knoema.Utils.uiFormattedDate!=null&&__.push($.encode(Knoema.Utils.uiFormattedDate(new Date(label),frequency))),__.push("<\/b><\/td>     ")}),__.push("    <\/tr>   <\/thead>   <tbody>    "),typeof series!="undefined"&&series!=null&&$.each(typeof series=="function"?series.call($item):series,function(n,s){with(this)__.push("     <tr>      <td><b><nobr>"),typeof s.name!="undefined"&&s.name!=null&&__.push($.encode(typeof s.name=="function"?s.name.call($item):s.name)),__.push("<\/nobr><\/b><\/td>        "),typeof labelsModel!="undefined"&&labelsModel!=null&&$.each(typeof labelsModel=="function"?labelsModel.call($item):labelsModel,function(i){with(this)__.push("       <td>       "),typeof(s.rangeType=="base")!="undefined"&&s.rangeType=="base"!=null&&(typeof(s.rangeType=="base")=="function"?(s.rangeType=="base").call($item):s.rangeType=="base")?(__.push("        "),typeof(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")!="undefined"&&(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")!=null&&__.push($.encode(typeof(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")=="function"?(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"").call($item):s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")),__.push("       ")):!0&&(__.push("        "),typeof(s.rangeType=="full")!="undefined"&&s.rangeType=="full"!=null&&(typeof(s.rangeType=="full")=="function"?(s.rangeType=="full").call($item):s.rangeType=="full")&&(__.push("         "),typeof(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")!="undefined"&&(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")!=null&&__.push($.encode(typeof(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")=="function"?(s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"").call($item):s.data[i][1]?Knoema.RegressionModel.prototype._round(s.data[i][1]):"")),__.push("        ")),__.push("       ")),__.push("       <\/td>      ")}),__.push("        "),typeof labelsPredict!="undefined"&&labelsPredict!=null&&$.each(typeof labelsPredict=="function"?labelsPredict.call($item):labelsPredict,function(i){with(this)__.push("       <td>       "),typeof(s.rangeType=="predict")!="undefined"&&s.rangeType=="predict"!=null&&(typeof(s.rangeType=="predict")=="function"?(s.rangeType=="predict").call($item):s.rangeType=="predict")?(__.push("        "),typeof(s.data[i+1][1]?Knoema.RegressionModel.prototype._round(s.data[i+1][1]):"")!="undefined"&&(s.data[i+1][1]?Knoema.RegressionModel.prototype._round(s.data[i+1][1]):"")!=null&&__.push($.encode(typeof(s.data[i+1][1]?Knoema.RegressionModel.prototype._round(s.data[i+1][1]):"")=="function"?(s.data[i+1][1]?Knoema.RegressionModel.prototype._round(s.data[i+1][1]):"").call($item):s.data[i+1][1]?Knoema.RegressionModel.prototype._round(s.data[i+1][1]):"")),__.push("       ")):!0&&(__.push("        "),typeof(s.rangeType=="full")!="undefined"&&s.rangeType=="full"!=null&&(typeof(s.rangeType=="full")=="function"?(s.rangeType=="full").call($item):s.rangeType=="full")&&(__.push("         "),typeof(s.data[labelsModel.length+i][1]?Knoema.RegressionModel.prototype._round(s.data[labelsModel.length+i][1]):"")!="undefined"&&(s.data[labelsModel.length+i][1]?Knoema.RegressionModel.prototype._round(s.data[labelsModel.length+i][1]):"")!=null&&__.push($.encode(typeof(s.data[labelsModel.length+i][1]?Knoema.RegressionModel.prototype._round(s.data[labelsModel.length+i][1]):"")=="function"?(s.data[labelsModel.length+i][1]?Knoema.RegressionModel.prototype._round(s.data[labelsModel.length+i][1]):"").call($item):s.data[labelsModel.length+i][1]?Knoema.RegressionModel.prototype._round(s.data[labelsModel.length+i][1]):"")),__.push("        ")),__.push("       ")),__.push("       <\/td>      ")}),__.push("       <\/tr>    ")}),__.push("   <\/tbody>  <\/table>");return __})