Displaying 1 result from an estimated 1 matches for "confusion2".
Did you mean:
confusion
2009 Dec 14
0
Confused on using expand.grid(), array(), image() and npudens(np) in my case
...uence of ordered(tf)+x+y is important and here i may have a wrong
specification
bw <- npudensbw(formula=~ordered(tf)+x+y, bwmethod="cv.ml") #confusion1
year.seq <- sort(unique(d$tf)) #length is 3
x.seq <- seq(0,1,0.02) #length is 51
y.seq <- seq(0,1,0.02) #length is 51
#Confusion2:what is the correct sequence for the three variables
(year.seq,x.seq and y.seq) in expand.grid()
data.eval <- expand.grid(tf=year.seq,x=x.seq,y=y.seq) #confusion2
fhat <- fitted(npudens(bws=bw, newdata=data.eval))
#Confusion3:what is the correct sequence for the three variables in the c()...