View source: R/stage-1-functions.R
| Stage1 | R Documentation |
Compute balancing weights using IC, IGO, or FLEXOR methods.
Stage1(
data,
parm,
method,
flexorFlag,
num.random,
naturalGroupProp,
gammaMin,
gammaMax,
verbose
)
data |
Structured data list from fn.createListData() |
parm |
Parameter list with propensity scores from fn.Estimate_mgPS() |
method |
Chracter string: "IC", "IGO", or "FLEXOR" |
flexorFlag |
Logical indicating if FLEXOR is selected |
num.random |
Number of random gamma starting points for FLEXOR |
naturalGroupProp |
Probability vector theta for FLEXOR |
gammaMin |
Lower bound for gamma parameters (FLEXOR only) |
gammaMax |
Upper bound for gamma parameters (FLEXOR only) |
verbose |
Logical; if TRUE, display FLEXOR progress messages |
List with two elements:
return.parm - Updated parameter list with weights and ESS
percentESS - Percentage effective sample size
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.