Optimize the weekly delay

1 回表示 (過去 30 日間)
ShravanKumar Shivappa Masalvad
ShravanKumar Shivappa Masalvad 2021 年 10 月 7 日
clc; clear all; close all;
a=xlsread('C:\Users\Admin\Desktop\ArcSWAT_Install\26092021\Sir_RLR\RLR.xlsx');
car=a(:,2);
week_delay=14; %% I need to find optimum weekly delay number to give highest linear regression R square value
nvar=week_delay+1;
for j=1:nvar
p{j}=struct([]);
end
for w=1:nvar
p{w}=w:w+(99-week_delay-1);
end
for y=1:size(p,2)
combine(:,y)=car(p{y})';
end
input=combine(:,1:(size(combine,2)-1));
target=combine(:,size(combine,2));
  1 件のコメント
ShravanKumar Shivappa Masalvad
ShravanKumar Shivappa Masalvad 2021 年 10 月 7 日
I am using linear regression app to find the best weekly delay value to give highest optimum R square value.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by