I want to make regression in Matlab by my own formula. Is it possible to do it simple way?
조회 수: 1 (최근 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!