Skip to content

Commit 3789571

Browse files
committed
one more correction in the definition of starting values for the Hill model
1 parent 8c5d4e0 commit 3789571

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# DRomics (development version)
22

33
NEW FEATURES
4+
- Correction of the definition of starting values of the parameter e of the Gaussprobit model and of the Hill model. This could help the fit of those models in few cases.
45

56
BUG FIXES
67

7-
- Fix a bug in the definition of starting values of the parameter e of the Gaussprobit model. This could help the fit in few cases.
88

99
# DRomics 2.6-2
1010

R/util-basicandfitfunc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ startvalHillnls2 <- function(x, y, xm, ym, increase) { # requires the definition
117117
xreg <- log(x[x != 0])
118118
reg <- stats::lm(yreg ~ xreg)
119119
b <- reg$coefficients[2]
120-
e <- reg$coefficients[1] / (-b)
120+
e <- exp(reg$coefficients[1] / (-b))
121121
startval <- list(b = b, c = c, d = d, e = e)
122122
}
123123

0 commit comments

Comments
 (0)