R/psdata_cl.R

#' Simulated dataset for PSweight
#'
#' This is a simulated observational study with three treatment groups to illustated the ulity of PSweight.
#'
#' @docType data
#'
#' @usage data(psdata_cl)
#'
#' @format A data frame with 1500 rows and 9 columns.
#'
#' @details The simulated dataset includes 1500 rows, with each row represents information recorded from each individual.
#' There are 9 variables (columns). The treatment is the variable trt, which has two treatment arms. The clt is the cluster level.
#' The outcome of interest is variable Y. cov1-cov6 are pre-treatment covariates among which cov1-cov5 are continous, and cov6 is binary.
#'
#' @keywords dataset
#'
#' @examples
#' # data("psdata_cl")

"psdata_cl"

Try the PSweight package in your browser

Any scripts or data that you put into this service are public.

PSweight documentation built on May 29, 2024, 3:55 a.m.