# NOT RUN {
# Import data.
fname <- system.file("extdata", "finndiane.txt", package = "Numero")
dataset <- read.delim(file = fname)
# Set identities and manage missing data.
dataset <- numero.clean(dataset, identity = "INDEX")
# Prepare training variables.
trvars <- c("CHOL", "HDL2C", "TG", "CREAT", "uALB")
trdata <- numero.prepare(data = dataset, variables = trvars)
# Create a self-organizing map.
modl <- numero.create(data = trdata)
# Evaluate map statistics for all variables.
results <- numero.evaluate(model = modl, data = dataset)
print(results$statistics[,c("TRAINING", "Z", "P.z", "P.freq")])
# Evaluate map statistics with logarithms for skewed variables.
results <- numero.evaluate(model = modl, data = dataset,
logarithm=c("TG","CREAT","uALB"))
print(results$statistics[,c("TRAINING", "Z", "P.z", "P.freq")])
# }
Run the code above in your browser using DataLab