pihat | R Documentation |
Pihat computes the targeted treatment assignment probabilities across all strata in Jiang et al. (2022) and stacks them in an nx1 vector.
pihat(A, S, stratnum = NULL)
A |
A nx1 vector. |
S |
A nx1 vector. |
stratnum |
A nx1 vector about the unique strara numbers, the default value is NULL. |
A nx1 cector, each element corresponds to the targeted treatment assignment probabilities across all strata in Jiang et al. (2022).
Jiang L, Linton O B, Tang H, Zhang Y. Improving estimation efficiency via regression-adjustment in covariate-adaptive randomizations with imperfect compliance [J]. 2022.
DGP <-FuncDGP(dgptype = 1,rndflag = 2,n = 100,g = 4,pi = c(0.5, 0.5, 0.5, 0.5))
A <- DGP[["A"]]
S <- DGP[["S"]]
pihat(A = A, S = S)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.