desfreq: Description of frequencies

Description Usage Arguments Value Author(s) References See Also Examples

Description

Description of the rows of a contingency table or of groups of rows of a contingency table

Usage

1
descfreq(donnee, by.quali = NULL, proba = 0.05)

Arguments

donnee

a data frame corresponding to a contingency table (quantitative data)

by.quali

a factor used to merge the data from different rows of the contingency table; by default NULL and each row is characterized

proba

the significance threshold considered to characterized the category (by default 0.05)

Value

Returns a list with the characterization of each rows or each group of the by.quali. A test corresponding to the hypergeometric distribution is performed and the probability to observe a more extreme value than the one observed is calculated. For each row (or category), each of the columns characterising the row are sorted in ascending order of p-value.

Author(s)

Francois Husson Francois.Husson@agrocampus-ouest.fr

References

Lebart, L., Morineau, A. and Piron, M. (1995) Statistique exploratoire multidimensionnelle, Dunod.

See Also

catdes, condes, textual

Examples

1
2
3
data(children)
descfreq(children[1:14,1:5])    ## desc of rows
descfreq(t(children[1:14,1:5])) ## desc of columns

Example output

$money
            Intern %   glob % Intern freq Glob freq     p.value   v.test
unqualified 26.42487 20.28894          51        323 0.03400062 2.120064

$future
                    Intern %   glob % Intern freq Glob freq     p.value
high_school_diploma 23.58491 17.90201          75        285 0.00498468
bepc                24.52830 20.22613          78        322 0.04233762
cep                 28.30189 33.73116          90        537 0.02494795
                       v.test
high_school_diploma  2.808022
bepc                 2.030186
cep                 -2.242208

$unemployment
             Intern %    glob % Intern freq Glob freq      p.value    v.test
unqualified 25.088339 20.288945          71        323 0.035735928  2.099919
cep         39.222615 33.731156         111        537 0.038340499  2.071196
university   3.886926  7.851759          11        125 0.005355253 -2.784850

$circumstances
NULL

$hard
NULL

$economic
           Intern %   glob % Intern freq Glob freq      p.value   v.test
university 20.37037 7.851759          11        125 0.004656772 2.829865

$egoism
NULL

$employment
                    Intern %   glob % Intern freq Glob freq     p.value
high_school_diploma 7.594937 17.90201           6        285 0.01329901
                      v.test
high_school_diploma -2.47566

$finances
NULL

$war
NULL

$housing
NULL

$fear
NULL

$health
NULL

$work
                    Intern %   glob % Intern freq Glob freq      p.value
high_school_diploma 9.271523 17.90201          14        285 0.002976024
                       v.test
high_school_diploma -2.970204

attr(,"class")
[1] "descfreq" "list "   
$unqualified
             Intern %   glob % Intern freq Glob freq     p.value   v.test
money        15.78947 12.12312          51        193 0.03400062 2.120064
unemployment 21.98142 17.77638          71        283 0.03573593 2.099919

$cep
             Intern %   glob % Intern freq Glob freq     p.value    v.test
unemployment 20.67039 17.77638         111        283 0.03834050  2.071196
future       16.75978 19.97487          90        318 0.02494795 -2.242208

$bepc
       Intern %   glob % Intern freq Glob freq     p.value   v.test
future  24.2236 19.97487          78        318 0.04233762 2.030186

$high_school_diploma
            Intern %    glob % Intern freq Glob freq      p.value    v.test
future     26.315789 19.974874          75        318 0.004984680  2.808022
employment  2.105263  4.962312           6         79 0.013299007 -2.475660
work        4.912281  9.484925          14        151 0.002976024 -2.970204

$university
             Intern %   glob % Intern freq Glob freq      p.value    v.test
economic          8.8  3.39196          11         54 0.004656772  2.829865
unemployment      8.8 17.77638          11        283 0.005355253 -2.784850

attr(,"class")
[1] "descfreq" "list "   

FactoMineR documentation built on Jan. 8, 2021, 2:18 a.m.