I want to make regression in Matlab by my own formula. Is it possible to do it simple way?

5 次查看(过去 30 天)
When we want to make logistic regression we write in Matlab:
[b,dev,stats] = glmfit(x,[y ones(size(y))],'binomial','logit');
yfit = glmval(b,x,'logit');
And this algorithm uses logistic function to calculate output. I want to do regression for formula
W(n+1) = W(n) + exp(-k*n)*a*D(n)
where k and a are unknown values and I want to find them according to data, same way as b in logistic regression. How can I do this? If I knew code for logistic regression algorithm I would be able to write my own function, but unfortunately don't know how it works exactly. Any help would be appreciated! Thanks in advance!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by