[R] How to write a regression model for finding the radius of a cylinder given height and volume

2014-02-10 Thread nivek
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   



--
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@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.


Re: [R] How to write a regression model for finding the radius of a cylinder given height and volume

2014-02-10 Thread nivek
Thank you for your help. This is not homework however and my difficulty is in
the fact that i cannot figure out how the declare a variable for the height
or the volume given a data set where the matrix is already formed. I have
looked on many sites for the is answer and it seems like it would be an easy
one. So for this problem the provided data column 2 is the height data and
column 1 is the volume. What command do I use to read those values and form
a vector. Thank you for your time.



--
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-tp4685033p4685090.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.