@@ -582,7 +582,7 @@ ar.burg.default <-
582582 res <- list (order = order , ar = ar , var.pred = var.pred , x.mean = x.mean ,
583583 aic = xaic , n.used = n.used , n.obs = n.used , order.max = order.max ,
584584 partialacf = partialacf , resid = resid ,
585- method = ifelse (var.method == 1L , " Burg" , " Burg2" ) ,
585+ method = if (var.method == 1L ) " Burg" else " Burg2" ,
586586 series = series , frequency = xfreq , call = match.call())
587587 if (order ) {
588588 xacf <- acf(x , type = " covariance" , lag.max = order , plot = FALSE )$ acf
@@ -650,7 +650,7 @@ function (x, aic = TRUE, order.max = NULL, na.action = na.fail,
650650 res <- list (order = order , ar = ar , var.pred = var.pred , x.mean = x.mean ,
651651 aic = xaic , n.used = n.used , n.obs = n.used , order.max = order.max ,
652652 partialacf = partialacf , resid = resid ,
653- method = ifelse (var.method == 1L , " Burg" , " Burg2" ) ,
653+ method = if (var.method == 1L ) " Burg" else " Burg2" ,
654654 series = series , frequency = xfreq ,
655655 call = match.call())
656656 class(res ) <- " ar"
0 commit comments