Info
此问题已关闭。 请重新打开它进行编辑或回答。
Help finding the date for which my curve fit predicts 5% of positive daily tests.
1 次查看(过去 30 天)
显示 更早的评论
I'm im about just a done with a project which analyzes a positive COVID-19 test in Oregon but im running into a problem thinking about how to create a formula which will find where the curve predicts 5% of positive daily tests.
%Prediction 150 days from data
npredict=n+100;
x=1:npredict;
a=curve1.a;
b=curve1.b;
predict=(1./x/a/sqrt(2*pi).*exp(-(log(x)-b).^2/2/a^2))*dataPositiveL;
% Target: find date for which curve fit predicts 5% of positive daily tests
daytarget=predict*.05
[err idx]=min(abs(predict-daytarget))
% Use date algebra to find the date
t0=datetime(2020,3,4);
daytarget = t0+idx
I think I just dont understand the wording of what is being looked for.
1 个评论
Rik
2020-5-20
编辑:Rik
2020-5-20
A copy of this question in case it get deleted too:
Help finding the date for which my curve fit predicts 5% of positive daily tests.
I'm im about just a done with a project which analyzes a positive COVID-19 test in Oregon but im running into a problem thinking about how to create a formula which will find where the curve predicts 5% of positive daily tests.
%Prediction 150 days from data
npredict=n+100;
x=1:npredict;
a=curve1.a;
b=curve1.b;
predict=(1./x/a/sqrt(2*pi).*exp(-(log(x)-b).^2/2/a^2))*dataPositiveL;
% Target: find date for which curve fit predicts 5% of positive daily tests
daytarget=predict*.05
[err idx]=min(abs(predict-daytarget))
% Use date algebra to find the date
t0=datetime(2020,3,4);
daytarget = t0+idx
I think I just dont understand the wording of what is being looked for.
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!