Posts Tagged ‘ "R" Chemometrics ’

Comparing Spectra with different math treatments

March 30, 2012
By

It is amazing the quantity of graphics you can develop with R, and how you can show and manage  these graphics. Here in the same plot we compare the raw demo spectra, treated with MSC, SNV and with the first derivative (differences between consecu...

Dividing the Sample Set in two (Validation & Training)

March 29, 2012
By

We have in the Demo sample set “66” samples.  In this post we´ll see one way to divide the set in two parts: one for “Validation” and another for Training or Calibration.The selection will be random. And we are going to use the command:

SCRIPT for NIR "DEMO" Tutorial – 001

March 28, 2012
By

########### RAW NIR Demo Data##################################demo

VIDEO: Applying "SNV" math-treatment to our raw spectra in "R".

March 26, 2012
By

(This article was first published on NIR-Quimiometría, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on their blog: NIR-Quimiometría. R-bloggers.com 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,...

VIDEO: Applying "MSC" math-treatment to our raw spectra in "R".

March 25, 2012
By

(This article was first published on NIR-Quimiometría, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on their blog: NIR-Quimiometría. R-bloggers.com 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,...

March 24, 2012
By

Applying Savitzky-Golay filters in “R”

March 20, 2012
By

(This article was first published on NIR-Quimiometría, and kindly contributed to R-bloggers) When applying SG, we select a moving average window with an odd value “n” for the number of data points. SG fit a polynomial of “p” degree to this data points and give the value to the central point (this is the reason to have an odd...

Savitzky-Golay filters in R

March 17, 2012
By

Derivatives are a good way to extract information to our spectra. As we know NIR contents overlapping bands, and spectra must be treated with math operations in order to extract as much information as possible and to correlate it with the constituent &...

NIT: Fatty acids study in R – Part 007

March 14, 2012
By

Once we have chosen the model, we can continue acquiring spectra of new samples. Spectra is exported to a txt or csv file and we imported in R to be reprocessed.We use the function “predict” from the PLS package. I have done this with 20 new sample...

NIT: Fatty acids study in R – Part 006

March 12, 2012
By

In one of the columns, for constituent C16_0, one sample (57) has a value of “zero” (we could see this in the histogram).The reason for that is that the laboratory did not supply this value. The PLS regression will consider the lab value as cero, s...