Displaying 3 results from an estimated 3 matches for "subfun".
2007 Jan 04
1
need help with debug package
Hi all,
I met a problem while using the debug package, I have the following program:
mainfun<- function(){
beta<-1
result<-subfun(beta+x)
}
subfun<-function(expr){
y <- eval(expr, envir=list(x=c(1,2)),enclos = parent.frame())
return(y)
}
I have no problem using this program without calling the debug package. but once
I mtrace(subfun), the debugger can't find all the be...
2004 Mar 26
3
regression problem
i need to know how to estimate a linear regression whose coefficients sum
to zero
2011 Aug 15
1
accumulative grouping of time series
HI there,
Consider a data set like this:
> x <- data.frame(a=1:10, b=11:20, t=c(1,1,1,2,2,2,3,3,3,3))
> x
a b t
1 1 11 1
2 2 12 1
3 3 13 1
4 4 14 2
5 5 15 2
6 6 16 2
7 7 17 3
8 8 18 3
9 9 19 3
10 10 20 3
Here x$t is a vector of integers that represent a moment
in time. I would like to calculate a function of a & b at
each moment (t0), but using the rows