Hello, I'm new in R. I'm meteorological modeller and i will calculate some statistics for my model results. These statistis are the follow: ANB: Average Normalized Absolute BIAS MNB: Mean Normalized BIAS MNE: Mean Normalised Error STDE: Standard Deviation of Error FB: Fractional BIAS MG: Geometric Mean BIAS VG: Geometric Variance SKVAR: Skill Variance RMSE: Root Mean Square Error NMSE: Normalized Mean Square Error r: Correlation Coefficient CV: Coeficient of Variation FAC2: Fractional Predictions within a factor of two of observations Hc: Hit Rate IOA: Index of Agreement Au: Unpaired Peak Concentration Accuracy As: Spatially-paired Peak Concentration Accuracy And their expressions are in the upload file: http://r.789695.n4.nabble.com/file/n2307880/Statistics.doc Statistics.doc I think that someone was developed this statistical functions for use in R, but if don't exist, someone help me to programme it? Thank you! -- View this message in context: http://r.789695.n4.nabble.com/Programming-Statistical-Functions-tp2307880p2307880.html Sent from the R help mailing list archive at Nabble.com.
Maybe and r site search would help? Try and figure out how to calculate these yourself. If you need help send a minimal, reproducible example to this list, and you will probably recieve help. If you need a starting place for programming functions look at an introduction to R. #coefficient of variation CV <- function(x){mean(x)/sd(x)} My $0.02. Stephen On Fri, Jul 30, 2010 at 7:53 AM, hector <hector at ceam.es> wrote:> > Hello, > I'm new in R. I'm meteorological modeller and i will calculate some > statistics for my model results. > These statistis are the follow: > > ANB: Average Normalized Absolute BIAS > MNB: Mean Normalized BIAS > MNE: Mean Normalised Error > STDE: Standard Deviation of Error > FB: Fractional BIAS > MG: Geometric Mean BIAS > VG: Geometric Variance > SKVAR: Skill Variance > RMSE: Root Mean Square Error > NMSE: Normalized Mean Square Error > r: Correlation Coefficient > CV: Coeficient of Variation > FAC2: Fractional Predictions within a factor of two of observations > Hc: Hit Rate > IOA: Index of Agreement > Au: Unpaired Peak Concentration Accuracy > As: Spatially-paired Peak Concentration Accuracy > > And their expressions are in the upload file: > http://r.789695.n4.nabble.com/file/n2307880/Statistics.doc Statistics.doc > > I think that someone was developed this statistical functions for use in R, > but if don't exist, someone help me to programme it? Thank you! > > > > -- > View this message in context: http://r.789695.n4.nabble.com/Programming-Statistical-Functions-tp2307880p2307880.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. >-- Stephen Sefick ____________________________________ | Auburn University? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | Department of Biological Sciences? ? ? ? ?? | | 331 Funchess Hall? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | | Auburn, Alabama? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | 36849? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | |___________________________________| | sas0025 at auburn.edu? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | http://www.auburn.edu/~sas0025? ? ? ? ? ?? | |___________________________________| Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods.? We are mammals, and have not exhausted the annoying little problems of being mammals. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -K. Mullis
Hello, Did you find anything helpful for calculating the statistical functions in your list. I would like to also calculate these and have been looking for some code to do so. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Programming-Statistical-Functions-tp2307880p4157012.html Sent from the R help mailing list archive at Nabble.com.
As Stephen pointed out, this is easy to do. The word file the OP posted has all the necessary formulae. Now you just need to learn how to convert those formulae into R functions.... Stephen gave you an example of how to create a function for CV. Now run with it. perhaps something like this is what you need: http://cran.r-project.org/doc/contrib/Short-refcard.pdf It is time for you to do some reading on your own. Good luck. gvjones wrote> > Hello, > > Did you find anything helpful for calculating the statistical functions in > your list. I would like to also calculate these and have been looking for > some code to do so. > > Thanks >-- View this message in context: http://r.789695.n4.nabble.com/Programming-Statistical-Functions-tp2307880p4157101.html Sent from the R help mailing list archive at Nabble.com.
On Dec 4, 2011, at 9:27 AM, gvjones wrote:> Hello, > > Did you find anything helpful for calculating the statistical > functions in > your list. I would like to also calculate these and have been > looking for > some code to do so. >A search at the site linked by the R function RSiteSearch() produces two (or more) candidate packages. Rather than naming them, I think it good exercise to do the looking and judging by yourself: http://search.r-project.org/cgi-bin/namazu.cgi?query=meteorology&max=100&result=normal&sort=score&idxname=functions&idxname=Rhelp08&idxname=Rhelp10&idxname=Rhelp02 -- David Winsemius, MD West Hartford, CT