To be more specific, Ι can't understand how the input variables should be. How can I form my values in x axis into the X input?And is input y the values in y axis?
Help with regress syntax
13 次查看(过去 30 天)
显示 更早的评论
Hallo I am trying to apply the regress function in a simple x,y scatter plot but for some reason I can't find the exact syntax that will give the p-value.How is the correct syntax in order to take the p-value as an output?
采纳的回答
John D'Errico
2017-9-5
编辑:John D'Errico
2017-9-5
By reading the help for regress ...
help regress
{stuff snipped away}
[B,BINT,R,RINT,STATS] = regress(Y,X) returns a vector STATS containing, in
the following order, the R-square statistic, the F statistic and p value
for the full model, and an estimate of the error variance.
So it looks like
STATS(3)
might be of interest to you.
READ THE HELP!
4 个评论
José-Luis
2017-9-5
You can start by trying out the examples provided in the documentation and comparing to what you actually have (and which we can't see so we can't help you there).
Otherwise provide data reproducing your problem.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!