plot.bootstrap_f2 {disprofas}R Documentation

Plot of the bootstrap f2 simulation

Description

This is a method for the function plot() for objects of class ‘bootstrap_f2’.

Usage

## S3 method for class 'bootstrap_f2'
plot(x, ...)

Arguments

x

An object of class ‘bootstrap_f2’ returned by the bootstrap_f2() function.

...

Further arguments passed to or from other methods or arguments that can be passed down to the plot.boot() function.

Details

The element Boot of the ‘bootstrap_f2’ object that is returned by the function bootstrap_f2() is an object of class ‘boot’, generated by the function boot() from the ‘boot’ package. Thus, the corresponding plot method is used. Arguments to the plot.boot() function can be passed via the ... parameter. In addition to making the plot the function prints the result of Shah's lower 90% BCa confidence interval to the console.

Value

The ‘bootstrap_f2’ object passed to the x parameter is returned invisibly.

See Also

bootstrap_f2, boot, plot.boot, methods.

Examples

# Bootstrap assessment of data (two groups) by aid of bootstrap_f2() function
# by using 'rand_mode = "complete"' (the default, randomisation of complete
# profiles)
bs1 <- bootstrap_f2(data = dip2[dip2$batch %in% c("b0", "b4"), ],
                    tcol = 5:8, grouping = "batch", rand_mode = "complete",
                    rr = 200, new_seed = 421, use_ema = "no")

## Not run: 
  pbs1 <- plot(bs1)

  # The plot() function returns the 'plot_mztia' object invisibly.
  class(bs1)
  class(pbs1)

## End(Not run)

# Use of 'rand_mode = "individual"' (randomisation per time point)
bs2 <- bootstrap_f2(data = dip2[dip2$batch %in% c("b0", "b4"), ],
                    tcol = 5:8, grouping = "batch", rand_mode = "individual",
                    rr = 200, new_seed = 421, use_ema = "no")

## Not run: 
  plot(bs2)

## End(Not run)

[Package disprofas version 0.2.0 Index]