cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

This is probably a simple fix. Simple linear regression

ptc-4423720
1-Newbie

This is probably a simple fix. Simple linear regression

I don't understand why I'm getting an error for r^2. It should =1. If I change the name to rsquared, rsquared= just prints out a vector. Once I fix that, will the graph finally plot?

I attached that data file in case you need it.

2 REPLIES 2

Your problem is mainly with vectorizing, do not vectoirze arguments of functions that operate on vectors.

You cannot use r^2 directly as a variable, us rsquared or the Chemistry notation.

Please check the r^2, not sure that is waht you want

To use record "r^2" for the variable you need to use the keyboard shortcut "ctrl + shift + j" and "ctrl + shift + k":

Pic_1.png

Top Tags