사회 이동성 순서형 로짓 모형 (고급 STATA)

고급 정량 분석 social stata
예상 소요 시간 45분 (심화)
사전 지식 중급 이상. 로지스틱 회귀
표본 크기 기준 최소 300개 관측치 (강력 권장)
통계 가정 비례오즈 가정, 독립성
난이도: 고급 — 심화 내용을 포함합니다. 사전 지식이 필요할 수 있습니다.

개요

부모의 교육수준과 소득이 개인의 사회계급(하/중하/중상/상)에 미치는 영향을 순서형 로짓(Ordinal Logit) 모형으로 분석한다. Stata의 ologit 명령어를 사용한다.

분석 절차

1단계: 모형 추정

ologit 명령어로 순서형 로짓 모형을 추정한다. 종속변수는 순서가 있는 범주형 변수다.

2단계: 비례오즈 가정 검정

brant 명령어로 Brant 검정을 수행한다. 유의확률이 0.05 미만이면 비례오즈 가정이 위반된다.

3단계: 부분 비례오즈 모형

비례오즈 가정이 위반되면 gologit2로 부분 비례오즈(Partial Proportional Odds) 모형을 추정한다.

4단계: 한계효과 해석

margins 명령어로 각 독립변수 수준에서 상위 계급에 속할 확률을 계산한다.

코드 예제

* 순서형 로짓 모형 추정
ologit social_class parent_education income region

* 비례오즈 가정 검정
brant, detail

* 비례오즈 위반 시 부분 비례오즈 모형
gologit2 social_class parent_education income region, autofit

* 한계효과 계산
margins, at(parent_education=(1(1)4)) predict(outcome(3))
marginsplot

참고문헌

Long, J. S., & Freese, J. (2014). Regression Models for Categorical Dependent Variables Using Stata (3rd ed.). Stata Press.

심화 내용

고급 분석에서는 다음을 추가로 고려해야 합니다:

  • 부트스트래핑(Bootstrapping)을 통한 강건성 검증
  • 교차 검증(Cross-validation)으로 모형 일반화 성능 평가
  • 민감도 분석(Sensitivity Analysis)으로 가정 위반 시 영향 평가

코드 예제

STATA
* 순서형 로짓 모형 추정 ologit social_class parent_education income region * 비례오즈 가정 검정 brant, detail * 비례오즈 위반 시 부분 비례오즈 모형 gologit2 social_class parent_education income region, autofit * 한계효과 계산 margins, at(parent_education=(1(1)4)) predict(outcome(3)) marginsplot

참고문헌

Long, J. S., & Freese, J. (2014). Regression Models for Categorical Dependent Variables Using Stata (3rd ed.). Stata Press.

이 방법론과 연결된 콘텐츠