Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rpackages
IDF
Commits
870aaf4d
Commit
870aaf4d
authored
Jul 30, 2020
by
Laura Mack
Browse files
use mean (instead of median) for etainit
parent
91664c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
R/gevdfit.R
R/gevdfit.R
+1
-1
No files found.
R/gevdfit.R
View file @
870aaf4d
...
...
@@ -278,7 +278,7 @@ gev.d.init <- function(xdat,ds,link){
# sig0 <- exp Intercept
siginit
<-
link
$
siglink
$
linkfun
(
exp
(
lmsig
$
coefficients
[[
1
]]))
# eta <- mean of negativ slopes
etainit
<-
link
$
etalink
$
linkfun
(
me
di
an
(
c
(
-
lmsig
$
coefficients
[[
2
]],
-
lmmu
$
coefficients
[[
2
]])))
etainit
<-
link
$
etalink
$
linkfun
(
mean
(
c
(
-
lmsig
$
coefficients
[[
2
]],
-
lmmu
$
coefficients
[[
2
]])))
# mean of mu_d/sig_d
# could try:
# mu0/sig0 = exp(lmmu$coefficients[[1]])/exp(lmsig$coefficients[[1]])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment