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
5a3cdd3e
Commit
5a3cdd3e
authored
Oct 07, 2019
by
Jana Ulrich
Browse files
fixed error in message for initial values
parent
b798d5de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
R/gevdfit.R
R/gevdfit.R
+3
-2
No files found.
R/gevdfit.R
View file @
5a3cdd3e
...
...
@@ -98,7 +98,7 @@ gev.d.fit<-
# if no initial values where passed, calculate initial values for mu.d, sigma_0, xi, eta using IDF.init
if
(
!
is.null
(
init.vals
)){
if
(
length
(
init.vals
!=
5
)
)
{
if
(
length
(
init.vals
)
!=
5
){
warning
(
'Parameter init.vals is not used, because it is not of length 5.'
)
init.vals
<-
NULL
}
else
{
...
...
@@ -215,7 +215,8 @@ gev.d.fit<-
z
$
ds
<-
ds
if
(
show
)
{
if
(
z
$
trans
)
# for nonstationary fit
print
(
z
[
c
(
2
,
3
,
4
)])
# print model, link, conv
print
(
z
[
c
(
2
,
4
)])
# print model, link (3) , conv
#TODO: print link function names
else
print
(
z
[
4
])
# for stationary fit print only conv
if
(
!
z
$
conv
)
# if fit converged
print
(
z
[
c
(
5
,
7
,
9
)])
# print nll, mle, se
...
...
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