Skip to content
/ MVC1_R Public

Webapp for doing first order multivariate calibration on NIR spectroscopic data.

License

Notifications You must be signed in to change notification settings

atmunr/MVC1_R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVC1_R

MVC1_R provides a clean and intuitive interface for performing first order multivariate calibration on NIR spectroscopic data.

It's written as a web app in R shiny and free under the MIT License. You can install on R shiny server or try it here first.

Contents

Overview

The process of analysis is divided into four sections which must be completed from left to right. Each tab provides a list of options to choose from, after which you should click on the Apply changes button on the bottom to update the state of the program.

The changes applied can be viewed on the right, and you can choose to view a plot of the data or the raw numbers in a table.

alt text

Input data: providing input, selecting sensors and removing samples

The input files are expected to be in a column-wise format, top-to-bottom and left-to-right. The sample spectra should be columns of values, the leftmost column being from the first sample. The sample concentrations should be arranged as a column of values, the topmost value being from the first sample.

Selecting sensors

A subset of the sensors from the spectra can be selected, written as a list of pairs of numbers, representing the (closed) intervals of sensors to be kept. Input must consist of only integers, without commas or brackets. For example, the values 1 5 10 15 would select the sensors from the ranges [1;5] and [10;15]. alt text

Removing samples

The input format is the same as when selecting sensors, you can remove samples by providing value ranges.

Digital preprocessing: processing the data before analysis

Methods of digital preprocessing can be selected by ticking the checkboxes. (Remember to click on Apply changes!) alt text

Validation and predictions: performing first order analysis

Here, you can choose a maximum number of latent variables and perform cross-validation. This will compute the PRESS error, the F statistic and it's associated probability, for each number of latent variables from 1 to the upper limit.

The optimum number of latent variables thing will display the first amount of latent variables for which the associated probability is less than 0.75 (this is based on empirical results by Thomas and Haaland, 1988). alt text

And on the bottom you can choose a number of latent variables to produce regression coefficients and predict the analyte concentrations from the validation data set. alt text

Statstics: errors of prediction and insights on model accuracy

Finally, in this section the RMSEP (Root Mean Square Error of Prediction) and REP (Relative Error of Prediction are shown). You can also see a linear fit plot of the predicted and nominal concentrations, and the error of prediction for each individual sample. alt text

About

Webapp for doing first order multivariate calibration on NIR spectroscopic data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published