nivek
2014-Feb-10 14:39 UTC
[R] How to write a regression model for finding the radius of a cylinder given height and volume
Hello, I?m new to R and I?m trying to solve a simple problem for finding the radius of a cylinder given the height and volume. I?ve included the data file where the height in cm is column 2 and volume is in column 1. I know the equation needed is r= ?(V/H(3.14)). My question is how do I code this regression model in r. Any help is greatly appreciated. cylinder.dat <http://r.789695.n4.nabble.com/file/n4685033/cylinder.dat> -- View this message in context: http://r.789695.n4.nabble.com/How-to-write-a-regression-model-for-finding-the-radius-of-a-cylinder-given-height-and-volume-tp4685033.html Sent from the R help mailing list archive at Nabble.com.
David Carlson
2014-Feb-10 18:58 UTC
[R] How to write a regression model for finding the radius of a cylinder given height and volume
We have a policy of not doing your homework for you, but I can point you to a valuable resource for learning R http://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf. Your problem involves simple arithmetic. There is no regression problem unless you are trying to predict height from volume or volume from height (assuming that radius is constant). David C -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of nivek Sent: Monday, February 10, 2014 8:40 AM To: r-help at r-project.org Subject: [R] How to write a regression model for finding the radius of a cylinder given height and volume Hello, I?m new to R and I?m trying to solve a simple problem for finding the radius of a cylinder given the height and volume. I?ve included the data file where the height in cm is column 2 and volume is in column 1. I know the equation needed is r= ?(V/H(3.14)). My question is how do I code this regression model in r. Any help is greatly appreciated. cylinder.dat <http://r.789695.n4.nabble.com/file/n4685033/cylinder.dat> -- View this message in context: http://r.789695.n4.nabble.com/How-to-write-a-regression-model-for-finding-the-radius-of-a-cylinder-given-height-and-volume-tp4685033.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.