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
dc65bf7c
Commit
dc65bf7c
authored
Aug 04, 2020
by
Laura Mack
Browse files
check length(xdat) == length(ds) in gevdfit
parent
5a1b0e3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
R/gevdfit.R
R/gevdfit.R
+3
-1
No files found.
R/gevdfit.R
View file @
dc65bf7c
...
...
@@ -77,7 +77,9 @@ gev.d.fit<-
init.vals
=
NULL
,
theta_zero
=
FALSE
,
show
=
TRUE
,
method
=
"Nelder-Mead"
,
maxit
=
10000
,
...
)
{
if
(
length
(
xdat
)
!=
length
(
ds
))
{
stop
(
paste0
(
'The length of xdat is '
,
length
(
xdat
),
', but the length of ds is '
,
length
(
ds
),
'.'
))
}
z
<-
list
()
# number of parameters (betas) to estimate for each parameter:
npmu
<-
length
(
mul
)
+
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