Learn R Programming

FastHCS (version 0.0.7)

Tablets: Near-infrared (NIR) spectroscopy of a sample of 310 tablets.

Description

The original data set contains near-infrared (NIR) spectroscopy data for 310 tablets of four different dosages from pilot, laboratory and full scale production settings are included in the study. In this subset, we combine all 80 samples of 80mg tablets with the first 50 samples of 250mg tablets.

Usage

data(Tablets)

Arguments

Format

Labels

The observations with label '1' correspond to the 80mg Tablets samples and the '0' to the 250mg ones.

Column 2--405

Near Infrared Transmittance; 404 variables; 7400 to 10507 cm-1.

Examples

Run this code
# NOT RUN {
data(Tablets)
alpha<-0.5
Q<-15
p<-ncol(Tablets[,-1])
ns<-FHCSnumStarts(q=Q,eps=(1-alpha)*4/5)
RunExample<-FALSE
if(RunExample){
	Fit<-FastHCS(x=Tablets[,-1],q=Q,nSamp=ns,seed=1,alpha=0.5)
	colvec<-rep("orange",nrow(Tablets))
	colvec[Tablets[,1]==1]<-"blue"
	plot(Fit,col=colvec,pch=16)
}

# }

Run the code above in your browser using DataLab