diff options
author | (no author) <(no author)@d1b72e20-2ee0-0310-a1c4-ad5adbbefcdc> | 2004-09-01 05:05:20 +0000 |
---|---|---|
committer | (no author) <(no author)@d1b72e20-2ee0-0310-a1c4-ad5adbbefcdc> | 2004-09-01 05:05:20 +0000 |
commit | 18b13d3122eaa4f803795dfa2cb5ba951c8354f6 (patch) | |
tree | a7a4bbb2b11098c3db0e40a752d570a51724fa4d /R | |
parent | 83dce43f30a45f30d8b4796104628f69affd97a2 (diff) |
Fixed some mistakes in the help files, and took away the dependency
on the defunct nls package in the function drfit.
git-svn-id: http://kriemhild.uft.uni-bremen.de/svn/drfit@4 d1b72e20-2ee0-0310-a1c4-ad5adbbefcdc
Diffstat (limited to 'R')
-rw-r--r-- | R/drfit.R | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -23,13 +23,12 @@ drdata <- function(substances, experimentator = "%", db = "cytotox", drfit <- function(data, startlogEC50 = NA, lognorm = TRUE, logis = FALSE,
linearlogis = FALSE, b0 = 2, f0 = 0)
{
- library(nls)
- substances <- levels(data$substance)
- unit <- levels(as.factor(data$unit))
- logisf <- function(x,x0,b,k=1)
- {
- k / (1 + (x/x0)^b)
- }
+ substances <- levels(data$substance)
+ unit <- levels(as.factor(data$unit))
+ logisf <- function(x,x0,b,k=1)
+ {
+ k / (1 + (x/x0)^b)
+ }
linearlogisf <- function(x,k,f,mu,b)
{
k*(1 + f*x) / (1 + ((2*f*(10^mu) + 1) * ((x/(10^mu))^b)))
|