View source: R/psrwe_complikel.R
rwe_cl | R Documentation |
Estimate parameter of interest based composite likelihood for a single PS stratum
rwe_cl(
dta_cur,
dta_ext,
n_borrow = 0,
outcome_type = c("continuous", "binary"),
equal_sd = TRUE
)
dta_cur |
Vector of outcome from a PS stratum in current study |
dta_ext |
Vector of outcome from a PS stratum in external data source |
n_borrow |
Number of subjects to be borrowed |
outcome_type |
Type of outcomes: |
equal_sd |
Boolean. whether sd is the same between the current study and external data source |
Maximum composite likelihood estimator of the mean
x <- rnorm(100, mean = 0, sd = 1)
y <- rnorm(1000, mean = 1, sd = 2)
rwe_cl(x, y, n_borrow = 20, equal_sd = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.