Defining my own response model using Regstats function
显示 更早的评论
I am trying to fit my data - predictors x1,x2,x3 and response y - using regstats function of MATLAB. I wish to use my own model response for y.
Consider the model polynomial
y = a + b*x1 + c*x2 + d*x3 + e*x1^2*x2 + f*x2^2*x3 + g*x3^2*x1 + h*x1^2*x3 + ..... so on and so forth
If I were to use a polynomial like this as my model, I could specify my model matrix as defined in the x2fx function. However, my query is if I were to specify a model something like the one given below, how could I do so.
y = 3*x1 + 4*x2 + 5*x3 + a*x1^2*x2 + b*x2^2*x3 + .......
which means that my model has some pre-determined coefficients already and I need to find coefficients only for some select terms.
Thanks in advance.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Support Vector Machine Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!