boot_df: boot_df

View source: R/boot_df.R

boot_dfR Documentation

boot_df

Description

Sample rows with replacement from a matrix

Usage

boot_df(x_matrix, y_sur, ID = NULL, size = 10^5, seed = 1, prob = NULL)

Arguments

x_matrix

matrix to perform sampling on

y_sur

The numeric vector of the qualitative surrogate.

ID

The patient ID

size

size of matrix returned

seed

seed for sampling

prob

Vector for weight sampling

Value

A list with the sampled explanatory matrix and the sampled qualitative surrogate (y_sur)


PheVis documentation built on Oct. 20, 2023, 9:08 a.m.