Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

Toby-codigos/ForCausality

Repository files navigation

TheForCausality package provides a curated and comprehensive collection of datasets designed forcausal inference research. It brings together data from diverse domains such asclinical trials, cancer studies, epidemiological surveys, environmental exposures, and health-related observational studies.

Installation

You can install theForCausality package from CRAN with the following R function:

install.packages("ForCausality")

Dataset Suffixes

Each dataset inForCausality is labeled with asufix to indicate its structure and type:

  • _df: A standar dataframe.

  • _tbl_df: A tibble data frame object.

  • _list: A list object.

Datasets included in ForCausality

  • Colon_df: Chemotherapy for Stage B/C colon cancer

  • Stroke_df: Fictional ischemic stroke data case control data with risk factors, exposures and confounders

  • Pph_df: An external control trial of treatments for post-partum hemorrhage

Example Code:

# Load the packagelibrary(ForCausality)# Load a dataset from the packagedata(Colon_df)# Show the first six rows of the datasethead(Colon_df)# Display the structure of the datasetstr(Colon_df)# Summarize key variablessummary(Colon_df)# Visualize treatment groups and survival statustable(Colon_df$treatment,Colon_df$survival)# Open the dataset in the RStudio viewerView(Colon_df)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp