search for: deltase

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

Did you mean: deltas
2013 Mar 22
1
Trouble embedding functions (e.g., deltaMethod) in other functions
...mbda")$SE } mod.SE This code executes deltaMethod() flawlessly (NOTE: [[1]] and [[10]] are supposed to be NaN's). However, my goal is to embed the deltaMethod inside another function I'm writing. For brevity's sake, here's a very simple example that produces the same problem. deltaSE <- function(mod, x){ mod.SE <- list() for(i in 1:length(xVal)){ z <- xVal[i] mod.SE[[i]] <- deltaMethod(mod, "(m0^(1/lambda) - (z * m0/t0)^(1/lambda))^lambda")$SE } mod.SE } deltaSE(nlls, xVal) deltaMethod, when embedded in my deltaSE function produces only NaN's...