Monitoring some statistics with "R"

May 1, 2012

(This article was first published on NIR-Quimiometría, and kindly contributed to R-bloggers)

I´ve been practicing after reading a couple of tutorials:
to create a basic function  to monitor some  basic statistics as RMSEP, Bias, SEP, Correlation and RSQ.
 I´ve been doing this with other software`s, so it´s time for “R”. This is the script, please add feedback to improve it.


     cat(“Bias :”,bias,”\n”)}
     cat(“SEP  :”,sep,”\n”)}
     cat(“Corr :”,r,”\n”)}
     cat(“RSQ  :”,rsq,”\n”)}

> x<-c(1:10)
> y<-c(2:11)
> monitor2(x,y)
Bias : 1
SEP  : 0
Corr : 1
RSQ  : 1

To leave a comment for the author, please follow the link and comment on their blog: NIR-Quimiometría. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...


Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)