How to extract p-value from regress and corrcoef ?
Mostrar comentarios más antiguos
Hello everyone,
I was able to write the code to run regress and corrcoef but didn't know how to get the p value.
What exactly do i need to write before = in order to get these values? [ ?? ]= regress(speed',weight)
Any idea how to get these out of regress and corcoeff?
Respuesta aceptada
Más respuestas (1)
aikaterini vraka
el 4 de Jun. de 2021
0 votos
Hi,
Just a question. Since regression shows the one-way relationship, should I get the same p-value and R-squared if I interchange predictor and response variables? Or should they vary?
I use the same function but when I write e.g regress(weight,speed ), I see the same p-values as before and the only term that varies is the error variance? Is this correct?
Categorías
Más información sobre Hypothesis Tests en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!