Learn R Programming

imt

Within this package, you will find a collection of straightforward tools designed to assist in impact measurement. These tools include functions for randomization, checking baseline balance, and fitting basic Bayesian models, such as linear, logistic, and negative binomial models.

Installation

You can install the development version of imt from GitHub with:

# install.packages("pak")
pak::pak("google/imt")

Example

Examples for how to use the function included in this package can be found here

Copy Link

Version

Install

install.packages('imt')

Monthly Downloads

135

Version

1.0.0

License

Apache License (>= 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Ignacio Martinez

Last Published

September 2nd, 2024

Functions in imt (1.0.0)

getStanParameter

Extracts parameter from Stan model.
logit

Bayesian Logit Model Factory
fit

Fits Stan model.
.randomize_internal

Add a Random Treatment Indicator Column to a Data Frame
hedgesG

Hedges' g Effect Size with Pooled Standard Deviation
mcmcChecks

MCMC Checks
metaAnalysis

Create a Meta-Analysis Object Using Data From Previous Studies
pointEstimate

Calculate Point Estimate (Median or Mean) as Percentage
%>%

Pipe operator
negativeBinomial

Bayesian Negative Binomial Model Factory
randomizer

Randomization Class for Treatment Assignment
randomize

Randomly Assign Treatment While Controlling for Baseline Equivalency
validate_logical_vector

Validate a Logical Subgroup Vector
checkBaseline

Check Baseline Equivalency.
cleanData

Cleans and prepares data for analysis
balancePlot

Create a Baseline Balance Plot.
calculateEffectSizes

Calculate Effect Sizes for Treatment vs. Control
countMissing

Count missing values (NA) in a dataframe
createData

Converts a dataframe into a named list to provide data to a Stan model
coxsIndex

Cox's Proportional Hazards Index (Cox's C)
blm

Bayesian Linear Model Factory
calcProb

Calculate Probability of Posterior Draws Falling Within a Range
credibleInterval

Calculate credible interval from MCMC draws
logitRng

Calculate logit link and sample from binomial distribution
.combineColumns

Combine and Unite Columns
imt-package

The 'imt' package