View source: R/stage-2-functions.R
| fn.Stage2 | R Documentation |
Calculate weighted moments and group differences
fn.Stage2(local_data, local_wt.v, Y_hat = NULL, outcome_model = FALSE)
local_data |
Structured data list containing Y (outcomes), Z (groups), K |
local_wt.v |
Vector of weights (length N) |
Y_hat |
Predicted outcomes matrix (N x L) from |
outcome_model |
Logical; if TRUE, uses RF-predicted Y in place of observed Y. Default FALSE. |
List with two elements:
moments.ar - Array (3 * K * L) of means, SDs, medians
moreFeatures.v - Vector (length L) of mean differences
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.