tboot

0th

Percentile

Function tboot

Bootstrap nrow rows of dataset using the given row-level weights.

Usage
tboot(nrow, weights, dataset = weights$dataset, fillMissingAug = TRUE)
Arguments
nrow

number of rows in the new bootstrapped dataset.

weights

an object of class 'tweights' output from the 'tweights' function.

dataset

Data frame or matrix to bootstrap. Rows of the dataset must be in the same order as was used for the 'tweights' call. However the dataset may include additional columns not included in the 'tweights' calll.

fillMissingAug

fill in missing augmentation with primary weights resampling.

Details

Bootstrap simulates a dataset using the tilted weights. Details a further documented in the vignette.

Value

A simulated dataset with 'nrow' rows.

See Also

tweights

Aliases
  • tboot
Examples
# NOT RUN {
 target=c(Sepal.Length=5.5, Sepal.Width=2.9, Petal.Length=3.4)
 w = tweights(dataset = iris, target = target, silent = TRUE)
 simulated_data = tboot(nrow = 1000, weights = w)
# }
Documentation reproduced from package tboot, version 0.2.0, License: GPL-3

Community examples

Looks like there are no examples yet.