Subsetting method for mmkin objects.

# S3 method for mmkin
[(x, i, j, ..., drop = FALSE)

Arguments

x

An mmkin object

i

Row index selecting the fits for specific models

j

Column index selecting the fits to specific datasets

...

Not used, only there to satisfy the generic method definition

drop

If FALSE, the method always returns an mmkin object, otherwise either a list of mkinfit objects or a single mkinfit object.

Value

An object of class mmkin.

Examples

# Only use one core, to pass R CMD check --as-cran fits <- mmkin(c("SFO", "FOMC"), list(B = FOCUS_2006_B, C = FOCUS_2006_C), cores = 1, quiet = TRUE)
#> Error in mmkin(c("SFO", "FOMC"), list(B = FOCUS_2006_B, C = FOCUS_2006_C), cores = 1, quiet = TRUE): konnte Funktion "mmkin" nicht finden
fits["FOMC", ]
#> Error in eval(expr, envir, enclos): Objekt 'fits' nicht gefunden
fits[, "B"]
#> Error in eval(expr, envir, enclos): Objekt 'fits' nicht gefunden
fits["SFO", "B"]
#> Error in eval(expr, envir, enclos): Objekt 'fits' nicht gefunden
head( # This extracts an mkinfit object with lots of components fits[["FOMC", "B"]] )
#> Error in head(fits[["FOMC", "B"]]): Objekt 'fits' nicht gefunden
head( # The same can be achieved by fits["SFO", "B", drop = TRUE] )
#> Error in head(fits["SFO", "B", drop = TRUE]): Objekt 'fits' nicht gefunden