# NOT RUN {
#### generate R12in72 dataset
X = aux.gensamples(n=100, dname="R12in72")
#### try different exponents for regularization
out1 = do.nrsr(X, expl=0.01)
out2 = do.nrsr(X, expl=0.1)
out3 = do.nrsr(X, expl=0.5)
#### visualize
par(mfrow=c(1,3))
plot(out1$Y[,1], out1$Y[,2], main="NRSR::expl=0.01")
plot(out2$Y[,1], out2$Y[,2], main="NRSR::expl=0.1")
plot(out3$Y[,1], out3$Y[,2], main="NRSR::expl=0.5")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab