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
ff81b59c
Commit
ff81b59c
authored
Sep 10, 2019
by
Jana Ulrich
Browse files
same as before
parent
3535fd24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
R/gevdfit.R
R/gevdfit.R
+2
-1
No files found.
R/gevdfit.R
View file @
ff81b59c
...
...
@@ -95,6 +95,7 @@ gev.d.fit<-
if
(
!
is.null
(
init.vals
)){
init.vals
<-
data.frame
(
mu
=
init.vals
[
1
],
sigma
=
init.vals
[
2
],
xi
=
init.vals
[
3
]
,
theta
=
init.vals
[
4
],
eta
=
init.vals
[
5
])}
if
(
any
(
is.null
(
c
(
muinit
,
siginit
,
shinit
,
etainit
)))
&
is.null
(
init.vals
)){
message
(
'Initial values are calculated.'
)
init.vals
<-
gev.d.init
(
xdat
,
ds
,
ifelse
(
is.null
(
thetainit
),
0
,
thetainit
[
1
]))
}
# TODO: transform initial values with link function
...
...
@@ -283,7 +284,7 @@ gev.d.init <- function(xdat,ds,thetainit){
# mean of shape parameters
shinit
<-
mean
(
mles
[,
3
],
na.rm
=
TRUE
)
return
(
list
(
mu
=
muinit
,
sigma
=
siginit
,
xi
=
shinit
,
eta
=
etainit
))
return
(
list
(
mu
=
muinit
,
sigma
=
siginit
,
xi
=
shinit
,
theta
=
thetainit
,
eta
=
etainit
))
}
...
...
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