how to use nlmefit to multilevel regression (mixed effect) model

1 次查看(过去 30 天)
I have the following data:
X - column vector of n predictor values
Y - column vector of n responses
G - column vector of n values defining group membership in one of g groups
The model to be fitted is
y_ij = b_0 + b_1*.x_i + u_j
The values y_ij are presented in the vector Y for the corresponding values of the vector X.
How can I arrange the calling the nlmefit function, especially FUN parameter.

采纳的回答

the cyclist
the cyclist 2013-5-9
This answer
has a toy example that I think will be helpful for you.
  3 个评论
the cyclist
the cyclist 2013-5-9
I'm afraid I can't code up your specific problem for you. I was hoping that the simple example that Tom posted would give you a hint.
There is also a thorough example in the documentation of nlmefit(). Have you looked it and tried to understand it?
Dimitar Atanasov
Dimitar Atanasov 2013-5-10
Yes, of course. The first place that e look for solution was the documentation....
I'll try to manage the problem and I'll post the solution after that.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Optimization Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by