sample_gen_out_cond: Sample trees with same features as original but permuted...

Description Usage Arguments Details Value

View source: R/sample-general-cond-trees-outsider.R

Description

Sample trees with same features as original but permuted through the trees

Usage

1
sample_gen_out_cond(observed_data, B)

Arguments

observed_data

data.table frame with the following columns

cluster_id

unique cluster ID

person_id

unique identifier for every person

covariates

covariates of the individuals

B

number of samples for each individual tree

Details

assumes an observed outside infection

Value

data frame with the following columns

cluster_id

unique cluster_id for the sampled cluster

orig_id

original ID of the given cluster

variable

columns from featureless tree sampling

person_id

original identifier


skgallagher/InfectionTrees documentation built on July 28, 2021, 2:14 p.m.