查看完整版本: Matlab問題,logistic regression
頁: [1]

Lhellraiser 發表於 2014-9-1 03:59 PM

Matlab問題,logistic regression

小弟本業非資訊或是統計,只是因為工作關係最近需要用到matlab來建立一個模組,response surface model。
response surface model公式是這個:
Emax預設為1所以不管她。(分子有一個'-'其實是alpha,文章中打錯)
是這樣的,Cer, Ces這些是觀察值,C50r,C50s,alpha和n是固定的常數(先姑且稱它們為parameters)。
現在我有一些Cer,Ces的pairs,希望用這些值去回歸出parameters。
我用的logistic regression,希望用最小likelihood(-2LL)來找出最佳parameter。
原來我的前輩是使用fminsearch()這個功能,但是我拿來用卻跑出很多負值,parameters不應該是負的。
所以我想說用限定範圍,讓matlab在0~1000找這個最佳解。我用了fmincon()。但是跑出來卻出現這樣的訊息:
Local minimum found that satisfies the constraints.

Optimization completed because the objective function is non-decreasing in
feasible directions, to within the default value of the function tolerance,
and constraints are satisfied to within the default value of the constraint tolerance.

<stopping criteria details>

Active inequalities (to within options.TolCon = 1e-06):
  lower      upper     ineqlin   ineqnonlin
    4                                 

ans =

  200.2103  100.4980    6.2375         0


不好意思我看不太懂,似乎是有解了,但是給出來的答案卻是跟我給他的起始值幾乎一樣,只要我去改起始值,結果就會跟起始值一樣。
是我用錯了嗎? 有其他function能用嗎?
(不好意思因為程式碼比較多,所以如果有需要我再po上來)。
麻煩各位大大了。
...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div>
頁: [1]