search for: oangry

Displaying 1 result from an estimated 1 matches for "oangry".

Did you mean: angry
2010 Jun 18
4
Root mean square on binned GAM results
...n (RMSD) calculation on binned data. For example, let 'o' be the real, observed data and 'm' be the model data. I believe I can calculate the root mean squared deviation as: sqrt( mean( o - m ) ^ 2 ) However, this does not bin the data into mean sets. What I would like to do is: oangry <- c( mean(o[1:5]), mean(o[6:10]), ... ) mangry <- c( mean(m[1:5]), mean(m[6:10]), ... ) Then: sqrt( mean( oangry - mangry ) ^ 2 ) That calculation I would like to simplify into (or similar to): sqrt( mean( bin( o, 5 ) - bin( m, 5 ) ) ^ 2 ) I have read the help for ?cut, ?table, ?hist, a...