samp_srcs: Simple random cluster sample of 100 clusters from synthetic...

samp_srcsR Documentation

Simple random cluster sample of 100 clusters from synthetic population data, pop.

Description

This is made-up time-to-event data with properties that make it useful for testing and demonstrating svycoxme functions. There is a single level of clustering, identified with group_id, and the X covariates depend on Z covariates.

Usage

samp_srcs

Format

A data frame with 20,000 rows and 10 columns:

X1

Observation-level N(\mu_{X1}, 1) distributed covariate where \mu_{X1}=0.5*(Z1 + 1).

X2

Cluster-level N(\mu_{X2}, 1) distributed covariate where \mu_{X2}=0.5*(Z2 + Z3).

X3

Cluster-level binary covariate where Pr(X3=1) = Z3.

Z1

Stratum membership. Takes the values 1 to 5.

Z2

cluster-level N(0,1) distributed covariate.

Z3

cluster-level Uniform(0,1) distributed covariate.

stat_time

Event or Censoring time.

stat

Event/Censoring indicator. Event=1; Censoring=0.

group_id

Unique cluster ID.

obs_id

Unique observation ID.

fpc

Total number of clusters in the population.

weight

Observation-level inverse probability of selection weight.


svycoxme documentation built on June 8, 2025, 1:13 p.m.