R Econometrics MCP Server

Integrations

  • Provides containerized deployment of the R Econometrics MCP server, allowing for easier setup and isolation of the required R environment and dependencies.

  • Uses Python as the interface language for the MCP server that connects R's econometric capabilities to AI assistants.

R 계량경제학 MCP 서버

R을 통해 계량경제 모델링 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버를 사용하면 AI 보조원이 선형 회귀, 패널 데이터 모델, 계측 변수 회귀 및 진단 테스트를 포함한 정교한 계량경제 분석을 수행할 수 있습니다.

특징

  • 선형 회귀 : 선택적 견고한 표준 오차를 사용하여 선형 모델 실행
  • 패널 데이터 분석 : 고정 효과, 임의 효과, 풀링, 간 및 1차 차분 모델
  • 도구 변수 : IV 회귀 모델 추정
  • 진단 테스트 : 이분산성, 자기상관 및 함수형 테스트
  • 리소스 : 계량경제학 기법에 대한 참고 문서
  • 프롬프트 : 일반적인 계량경제 분석을 위한 미리 정의된 프롬프트 템플릿

설치

필수 조건

  • 파이썬 3.8 이상
  • R 4.0+
  • R 패키지: plm, lmtest, sandwich, AER, jsonlite

Docker 사용(권장)

  1. Docker 이미지를 빌드합니다.지엑스피1
  2. 컨테이너를 실행합니다.
    docker run -it r-econometrics-mcp

수동 설치

  1. 필요한 Python 패키지를 설치하세요.
    pip install -r requirements.txt
  2. 필요한 R 패키지를 설치하세요:
    install.packages(c("plm", "lmtest", "sandwich", "AER", "jsonlite"))
  3. 서버를 실행합니다:
    python r_econometrics_mcp.py

Claude Desktop과 함께 사용

  1. Claude Desktop 실행
  2. MCP 서버 패널을 엽니다
  3. 다음 구성으로 새 서버를 추가합니다.
    • 이름: R 계량경제학
    • 전송: stdio
    • 명령어: path/to/python r_econometrics_mcp.py
    • (또는 Docker를 사용하는 경우): docker run -i r-econometrics-mcp

예제 쿼리

서버가 연결되면 Claude와 함께 사용할 수 있는 몇 가지 쿼리 예는 다음과 같습니다.

선형 회귀

Can you analyze the relationship between price and mpg in the mtcars dataset using linear regression?

패널 데이터 분석

I have panel data with variables gdp, investment, and trade for 30 countries over 20 years. Can you help me determine if a fixed effects or random effects model is more appropriate?

도구 변수

I'm trying to estimate the causal effect of education on wages, but I'm concerned about endogeneity. Can you help me set up an instrumental variables regression?

진단 검사

After running my regression model, I'm concerned about heteroskedasticity. Can you run appropriate diagnostic tests and suggest corrections if needed?

도구 참조

선형 모델

선형 회귀 모델을 실행합니다.

매개변수 :

  • formula (문자열): 회귀 공식(예: 'y ~ x1 + x2')
  • data (객체): 사전/JSON 객체로서의 데이터 세트
  • robust (부울, 선택 사항): 견고한 표준 오류를 사용할지 여부

패널_모델

패널 데이터 모델을 실행합니다.

매개변수 :

  • formula (문자열): 회귀 공식(예: 'y ~ x1 + x2')
  • data (객체): 사전/JSON 객체로서의 데이터 세트
  • index (배열): 패널 인덱스 변수(예: ['개인', '시간'])
  • effect (문자열, 선택 사항): 효과 유형: '개별', '시간' 또는 '2가지'
  • model (문자열, 선택 사항): 모델 유형: 'within', 'random', 'pooling', 'between' 또는 'fd'

진단

모델 진단을 수행합니다.

매개변수 :

  • formula (문자열): 회귀 공식(예: 'y ~ x1 + x2')
  • data (객체): 사전/JSON 객체로서의 데이터 세트
  • tests (배열): 실행할 테스트(예: ['bp', 'reset', 'dw'])

iv_회귀

도구변수 회귀를 추정합니다.

매개변수 :

  • formula (문자열): 회귀식(예: 'y ~ x1 + x2 | z1 + z2')
  • data (객체): 사전/JSON 객체로서의 데이터 세트

자원

  • econometrics:formulas : 일반적인 계량경제학 모델 공식에 대한 정보
  • econometrics:diagnostics :진단 테스트 참고 자료
  • econometrics:panel_data : R에서 패널 데이터 분석 가이드

기여하다

기여를 환영합니다! 풀 리퀘스트를 제출해 주세요.

특허

MIT 라이센스

감사의 말

  • R 프로젝트와 R 코어 팀
  • plm, lmtest, sandwich 및 AER 패키지 개발자
  • 모델 컨텍스트 프로토콜을 위한 Anthropic
-
security - not tested
A
license - permissive license
-
quality - not tested

R을 통해 계량경제 모델링 기능을 제공하여 AI 보조자가 선형 회귀, 패널 데이터 모델, 계측 변수 회귀, 진단 테스트를 포함한 정교한 분석을 수행할 수 있도록 합니다.

  1. Features
    1. Installation
      1. Prerequisites
      2. Using Docker (Recommended)
      3. Manual Installation
    2. Usage with Claude Desktop
      1. Example Queries
        1. Linear Regression
        2. Panel Data Analysis
        3. Instrumental Variables
        4. Diagnostic Tests
      2. Tools Reference
        1. linear_model
        2. panel_model
        3. diagnostics
        4. iv_regression
      3. Resources
        1. Contributing
          1. License
            1. Acknowledgments
              ID: qiqzedafdr