Hi, I have two (different types of) measurements, say X and Y, resulting from the same set of experiments. So X and Y are paired: (x_1, y_1), (x_2, y_2), ...
I am trying to calculate the standard deviation of Y with respect to X. In other words, in terms of the scatter plot of X and Y, I would like to divide it into bins along the X-axis and for each bin calculate the standard deviation along the Y results in that bin. (Though I am not totally sure, this seems to remind me of the conditional expectation of Y given X - maybe it is called the conditional deviation?) Is their a built in procedure in R for calculating the above? Otherwise, what would be the easiest way to achieve it? (factors maybe?) Thankful for the help, Firas. [[alternative HTML version deleted]] ______________________________________________ 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.