How can I incorporate Different contrivance structure into linear mixed effect model which is fitrgp /fitlmematrix method I am trying to use?
3 次查看(过去 30 天)
显示 更早的评论
lme = fitlmematrix(X,y,Z,G,'CovariancePattern','K','FitMethod','REML')
Here the covariance K is for random effect as much as I know. It's a squared covariance kernel. if I take
K=(sigmaF^2)*exp(-0.5*pdist2(x,x','squaredeuclidean')/(sigmaL^2))
it exceeds the dimension of covariance pattern in fitlmematrix. Here my error variance would be ~N(0,sigma^2I). So how can I incorporate Gaussian correlation function here?
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!