d***x 发帖数: 6 | 1 用R 的LME model fit出来的slope不是想要的(eg. fit 出来的slope>0)。我想要put
restriction on slope. (eg. slope<0 )
怎么才能把slope改成<0呢?
实际上my restriction to the slope would be
slope b1 <0, b2>0 and b1+b2 <0 (which means 0< b2<-b1)
找到lmeControl, optim, optimx (后面两个function 里面可以设lower, upper
boundary) 但是不会用,求高人指点 |
|