R/psdata.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)
#'
#' @format A data frame with 1500 rows and 8 columns.
#'
#' @details The simulated dataset includes 1500 rows, with each row represents information recorded from each individual.
#' There are 8 variables (columns). The treatment is the variable trt, which has three treatment arms.
#' 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")

"psdata"

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.