pmse {synthesizer} | R Documentation |
Compute the pMSE metric between synthetic and real data
Description
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.
Usage
pmse(synth, real, model = c("lr", "rf"), nrep = NULL)
Arguments
synth |
|
real |
|
model |
|
nrep |
|
See Also
Other measures:
dcor()
,
dmean()
,
qa()
Examples
scars <- synthesize(cars)
pmse(scars, cars)
[Package synthesizer version 0.2.0 Index]