search for: knotn

Displaying 1 result from an estimated 1 matches for "knotn".

Did you mean: knots
2005 Feb 24
2
a question about function eval()
Hi, I have a question about the usage of eval(). Wonder if any experienced user can help me out of it. I use eval() in the following function: semireg.pwl <- function(coef.s=rnorm(1),coef.a=rnorm(1),knots.pos=knots.x,knots.ini.val=knots.val){ knotn <- length(knots.pos) def.par.env <- sys.frame(1) print(def.par.env) print(environment(coef.s)) tg <- eval( (parse(text= paste( "function(coef.sex=coef.s,coef.age=coef.a,", paste("knot.val.&quo...