Skip to content

DepartmentOfStatisticsPUE/cda-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Categorical Data Analysis 2023/24

Outline of lecture

  1. Discrete distributions [code for/from lecture]

  2. Maximum Likelihood Estimation (MLE) [code for/from lecture]

  3. Goodness of fit (GoF) [code for/from lecture] [info about goodfit]

  4. Contingency tables:

  5. Categorical data in regression [code for/from lecture]

  6. Generalized linear models:

  7. Generalized estimating equations [code for/from lecture]

Case study

Example final test

Here is an example of the final test.

Required packages / modules

  • R:
    • distributions3,
    • maxLik, rootSolve
    • vcd, fitdistrplus
    • marginaleffects, modelsummary
    • car
    • see, performance, patchwork
  • Python:
    • scipy, numpy, pandas
    • pingouin, matplotlib, statsmodels
  • Julia:
    • Distributions.jl, DataFrames.jl,
    • Optim.jl, Roots.jl
    • HypothesisTests.jl, StatsBase.jl
    • FreqTables.jl, CSV.jl
    • Effects.jl
    • GLM.jl

Description of the data

Source:

  • id -- company identifier
  • woj -- region (województwo) id (02, 04, ..., 32)
  • public -- is the company public (1) or private (0)?
  • size -- size of the company (small = up to 9 employees, medium = 10 to 49, big = over 49)
  • nace -- NACE (PKD) sections (1 letter)
  • nace_division -- NACE (PKD) division (2-digits, https://www.biznes.gov.pl/pl/klasyfikacja-pkd)
  • vacancies -- how many vacancies the company reported?

Sample rows from the dataset

           id woj public   size nace nace_division vacancies
    1:  27350  14      1  Large    O            84         2
    2:  26705  14      1  Large    O            84         1
    3: 257456  24      1  Large    O            84         2
    4: 183657  16      1 Medium    O            84         0
    5: 200042  18      1 Medium    O            84         0
   ---                                                      
57476: 244800  08      1 Medium    P            85         0
57477:  62309  08      1 Medium    R            93         0
57478: 106708  08      0 Medium    B            08         0
57479:  62264  08      0 Medium    B            08         0
57480: 255865  08      0  Small    C            23         0

Software versions

R version 4.2.2 (2022-10-31)
Python 3.10.7 (v3.10.7:6cc6b13308, Sep  5 2022, 14:02:52)
Julia Version 1.9.0-rc1
Commit 3b2e0d8fbc1 (2023-03-07 07:51 UTC)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published