Displaying 1 result from an estimated 1 matches for "scresid".
Did you mean:
resid
2010 Sep 16
4
Pesky homemade function code
...1]]-data$times[data$ids==i][index[j,2]])
gamma1[j]=.5*(data$resids[data$ids==i][index[j,1]]-data$resids[data$ids==i][index[j,2]])^2
}
time=c(time,time1)
gamma=c(gamma,gamma1)
}
value=list(time=time,gamma=gamma)
return(value)
}
and I would run it as
semivario(data=hope,ids=id,times=sctime,resids=scResid)
What I want to do is everywhere we see the words data,ids,times,resids to be
replaced with, for example, hope,id,sctime,scResid. Think of macros in SAS
where we use the & before every macro input variable name. Im not sure if
this is how R handles function inputs.
Here is my error:
Error in...