Getting Started

Install and begin using the cohortED package in R.

Install cohortED from GitHub

The cohortED package is hosted on GitHub and can be installed using the devtools package.

First, install devtools if you haven’t already:

install.packages("devtools")

Then install cohortED with

devtools::install_github("stat-brain/cohortED")

Load the package

After installation, load cohortED like any other R package:

library(cohortED)

Test your installation

You can verify that it’s working by browsing package help:

help(package = "cohortED")

Or try a basic function:

# Example: 

RStudio Tips

  • Make sure you’re using the latest version of R (4.2 or higher is recommended).
  • Use RStudio Projects to organize your work.
  • If you run into issues, try restarting R and reinstalling the package.

What’s Next?

  • Documentation: Learn how to use each function.
  • Examples: see cohortED in action.
  • Report an issue: Found a bug or need help?

Happy cohorting!