Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/implication.index.R
The implication.index
function computes the implication index statistics of Gras (YEAR).
1 2 3 4 5 6 7 | implication.index(
y,
target = decision.rule.majority(y, quiet = quiet),
h0 = y,
quiet = T,
...
)
|
y |
a |
target |
a character. |
h0 |
a |
quiet |
a |
... |
optional arguments (not used). |
FIXME: write the formula.
A numeric
, the value of the statistics.
Emmanuel Rousseaux
FIXME
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ritschard.array <- array(
data = c(50,5,5,40,5,8,6,12,10,0,50,6,14,30,2,10,18,2),
dim = c(3,3,2),
dimnames = list(
'civil status' = c('married', "single", 'divorced/widowed'),
'working sector' = c('primary', 'secondary', 'tertiary'),
'sex' = c('man', 'woman')
)
)
ritschard.data <- expand.array(ritschard.array)
ritschard.data
names(ritschard.data)
distribution(ritschard.data[ritschard.data$sex == 'man','civil.status'])
distribution(ritschard.data[ritschard.data$sex == 'woman','civil.status'])
imp.m <- implication.index(
y = ritschard.data[ritschard.data$sex == 'man','civil.status'],
h0 = distribution(ritschard.data$civil.status),
quiet = FALSE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.