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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to