Skip to content

Commit e394769

Browse files
committed
Call with steps = TRUE for a CG example
1 parent 44dd6d1 commit e394769

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testthat/test-stepReduce.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RSestimates <- as.numeric(c(muhat, sigmahat, xihat))
2525
loglikRS <- logLik(modRS)
2626

2727
# Fit model using the CG method
28-
modCG <- fitGEV(y ~ gamlss::pb(x), data = data, method = CG())
28+
modCG <- fitGEV(y ~ gamlss::pb(x), data = data, method = CG(), steps = TRUE)
2929
muhat <- modCG$mu.coefficients
3030
sigmahat <- exp(modCG$sigma.coefficients)
3131
xihat <- modCG$nu.coefficients
@@ -43,7 +43,8 @@ test_that("RS estimates equal CG estimates", {
4343
## Check that stepLength = c(1, 1, 1) gives the same results as the default
4444
## stepLength = 1
4545

46-
modCG2 <- fitGEV(y ~ gamlss::pb(x), data = data, method = CG(), stepLength = c(1, 1, 1))
46+
modCG2 <- fitGEV(y ~ gamlss::pb(x), data = data, method = CG(),
47+
stepLength = c(1, 1, 1))
4748
muhat <- modCG2$mu.coefficients
4849
sigmahat <- exp(modCG2$sigma.coefficients)
4950
xihat <- modCG2$nu.coefficients

0 commit comments

Comments
 (0)