[R] Linear regression and stand deviation at the Linux command line

Keith Christian ke|th1chr|@t|@n @end|ng |rom gm@||@com
Thu Aug 22 21:07:37 CEST 2024


R List,

Please excuse this ultra-newbie post.
I looked at this page but it's a bit beyond me.
https://www2.kenyon.edu/Depts/Math/hartlaub/Math305%20Fall2011/R.htm

I'm interested in R construct(s) to be entered at the command
line that would output slope, y-intercept, and r-squared values read
from a csv or other filename entered at the command line, and the same
for standard deviation calculations, namely the standard deviation,
variance, and z-scores for every data point in the file.

E.g.
$ ((R function for linear regression here))    slope, y-intercept, and
r-squared, other related stats that R seems most capable of
generating.
linear_regression_data.csv file contents (Are line numbers, commas,
etc. needed or no?)
1 20279
2 899
3 24747
4 12564
5 29543

$ ((R function for standard deviation here))    standard deviation,
variance, z-scores, other related stats that R seems most capable of
generating.
standard_deviation_data.csv file contents (Are line numbers, commas,
etc. needed or no?)
1 16837
2 9498
3 31389
4 2365
5 17384

Many thanks,

----------Keith



More information about the R-help mailing list