diff options
author | ranke <ranke@5fad18fb-23f0-0310-ab10-e59a3bee62b4> | 2006-05-16 19:52:55 +0000 |
---|---|---|
committer | ranke <ranke@5fad18fb-23f0-0310-ab10-e59a3bee62b4> | 2006-05-16 19:52:55 +0000 |
commit | e12be874ff477509b737ad09bf05144a7fbedac2 (patch) | |
tree | 89756697cd3b40a812a3db777acddc4cea051d66 /R | |
parent | 49eff36596275b1dbb5e07c97fb93db182baa27e (diff) |
Tried to fix the return value of lod, but not yet.
git-svn-id: http://kriemhild.uft.uni-bremen.de/svn/chemCal@12 5fad18fb-23f0-0310-ab10-e59a3bee62b4
Diffstat (limited to 'R')
-rw-r--r-- | R/lod.R | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,6 +29,6 @@ lod.lm <- function(object, ..., alpha = 0.05, beta = 0.05) lod.x <- optimize(f,interval=c(0,max(object$model[[xname]])))$minimum newdata <- data.frame(x = lod.x) names(lod.x) <- xname - lod.y <- predict(object, data.frame(lod.x)) + lod.y <- predict(object, newdata = lod.x) return(list(x = lod.x, y = lod.y)) } |