data(lynxjura)
map <- lynxjura$map
## We keep only "wild" indices.
tmp <- lynxjura$locs[,4]!="D"
locs <- lynxjura$locs[tmp, c("X","Y")]
hist(map, type = "l")
## The variable artif is far from symetric
## We perform a square root transformation
## of this variable
## We therefore normalize the variable 'artif'
map[,4] <- sqrt(map[,4])
hist(map, type = "l")
## We perform the ENFA
(enfa1 <- enfa(map, locs[tmp, c("X","Y")],
scannf = FALSE))
hist(enfa1)
hist(enfa1, scores = FALSE, type = "l")
## randomization test
(renfa <- randtest(enfa1))
plot(renfa)
if (require(MASS))
scatter(enfa1)
Run the code above in your browser using DataLab