powered by
Estimate parameter of interest based on composite likelihood for a single PS stratum
rwe_cl( dta_cur, dta_ext, n_borrow = 0, outcome_type = c("continuous", "binary"), equal_sd = TRUE )
Maximum composite likelihood estimator of the mean
Vector of outcome from a PS stratum in the current study
Vector of outcome from a PS stratum in the external data source
Number of subjects to be borrowed
Type of outcomes: continuous or binary.
continuous
binary
Boolean. whether sd is the same between the current study and external data source
x <- rnorm(100, mean = 0, sd = 1) y <- rnorm(1000, mean = 1, sd = 2) rwe_cl(x, y, n_borrow = 20, equal_sd = FALSE)
Run the code above in your browser using DataLab