pmse | R Documentation |
The propensity mean squared error is defined as
\frac{1}{N}\sum_{i=1}^N(p_i-c)^2
, where c
is the number of
synthetic records, divided by the sum of the number of synthetic and real
records.
pmse(synth, real, model = c("lr", "rf"), nrep = NULL)
synth |
|
real |
|
model |
|
nrep |
|
[numeric]
scalar.
scars <- synthesize(cars)
pmse(scars, cars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.