Displaying 1 result from an estimated 1 matches for "piwo".
Did you mean:
pio
2008 Feb 19
1
Referencing to an object within a function
...;- function(x,y){
library(segmented)
col <- subset(final,final[,x] == 2 | final[,x] == 4)
col[,x] <- ifelse(col[,x] == 2,1,0)
glm1 <- glm(col[,x]~col[,"PLAND"],family=binomial)
glm2 <- segmented.glm(obj = glm1, seg.Z = ~PLAND, psi=y, it.max = 100)
}
> colonization("PIWO",48)
Error in eval(expr, envir, enclos) : object "x" not found
Thank you.