# NOT RUN {
## load example data
data(example_X)
data(example_EMrob)
## define mean robust end-member loadings
Vqn <- EMMA(X = X, q = 2, plot = TRUE)$loadings
## perform residual end-member loading calculation
Vqn.res <- residual.EM(Vqn)
## model EMMA with the residual end-member
E_res <- EMMA(X = X,
q = 3,
Vqn = rbind(Vqn, Vqn.res),
plot = TRUE)
# }
Run the code above in your browser using DataLab