Displaying 1 result from an estimated 1 matches for "myd2".
Did you mean:
md2
2006 Apr 27
1
scope of variable/object ?
...lace=TRUE)
mydata <- list(x=x,y=y)
mytrain <- pamr.train(mydata)
new.scales <- pamr.adaptthresh(mytrain,ntries = 1)
########################################
But if I split the lines into two functions, then I get an error message that reads :
'Error in pamr.train(data = myd2, threshold = threshold, threshold.scale = all.scales[i+ : object "myd2" not found.'
The code that doesn't work is:
################### DOESN'T WORK ############
library(pamr)
domat <- function(myd){
myd2 <- myd
mytrain <- pamr.train(myd2...