powered by
Title To calculate distance between two studies using covariate information
calc_dist(df, col_names, Study = "Study", Treat = "Treatment", weights, digits)
Data frame
A data frame consists of columns namely "Study", "Treatment", and at least one covariate.
A vector of column names specifying covariate names.
A column name in a data frame named as "Study" specifying study names.
A column name in a data frame named as "Treatment" specifying treatment names.
A variable in which the results of specify_weight() function was stored.
A numeric value indicating the number of decimal places in the Distance calculated.
Shubhram Pandey shubhram1992@gmail.com
attach(exampleData) var = c("Male","Age") weights = specify_weight(var, weights = c(0.5,0.5)) weights dist = calc_dist(df = exampleData, col_names = var, weights = weights,digits = 4) dist
Run the code above in your browser using DataLab