# πŸ“Š One-Touch Analysis & Report Pipeline μ™„μ „ μžλ™ν™”λœ 뢄석 및 λ³΄κ³ μ„œ 생성 νŒŒμ΄ν”„λΌμΈμž…λ‹ˆλ‹€. ## πŸš€ λΉ λ₯Έ μ‹œμž‘ ### μ›ν„°μΉ˜ μ‹€ν–‰ ```bash cd "Front/On/love(cs)/strategic ambiguity/empirics" ./run_full_pipeline.sh ``` 이 λͺ…λ Ή ν•˜λ‚˜λ‘œ λ‹€μŒ λͺ¨λ“  μž‘μ—…μ΄ μžλ™μœΌλ‘œ μ‹€ν–‰λ©λ‹ˆλ‹€: 1. βœ… **데이터 ꡬ좕**: Company*.dat νŒŒμΌλ“€λ‘œλΆ€ν„° λΆ„μ„μš© 데이터셋 생성 2. βœ… **톡계 뢄석**: H1, H2, H3, H4 λͺ¨λΈ fitting 및 κ²°κ³Ό μ €μž₯ 3. βœ… **μ‹œκ°ν™” 생성**: Figure 1, Figure 2a/2b, interaction plots λ“± 4. βœ… **λ³΄κ³ μ„œ λ Œλ”λ§**: 3개 Quarto λ³΄κ³ μ„œ β†’ HTML/PDF λ³€ν™˜ 5. βœ… **ν’ˆμ§ˆ 평가**: Charles Fine & Scott Stern κ΄€μ μ—μ„œ μžλ™ 평가 ## πŸ“‹ 사전 μš”κ΅¬μ‚¬ν•­ ### ν•„μˆ˜ - **Python 3.8+** with packages: - pandas - numpy - matplotlib - statsmodels - scipy - **데이터 파일** (λ‹€μŒ 쀑 ν•œ 곳에 μœ„μΉ˜): - `/Users/hyunjimoon/MIT Dropbox/Angie.H Moon/tolzul/Front/On/love(cs)/strategic ambiguity/empirics/data/raw/` - `./data/raw/` (μƒλŒ€ 경둜) ν•„μš”ν•œ 파일: - `Company20211201.dat` - `Company20220101.dat` - `Company20220501.dat` - `Company20230501.dat` ### 선택 (λ³΄κ³ μ„œ λ Œλ”λ§μš©) - **Quarto**: https://quarto.org/docs/get-started/ - **LaTeX** (PDF μƒμ„±μš©, 선택사항): https://www.latex-project.org/get/ Quarto 없이도 μŠ€ν¬λ¦½νŠΈλŠ” μ‹€ν–‰λ˜λ©°, .qmd νŒŒμΌλ“€μ€ μƒμ„±λ©λ‹ˆλ‹€. ## πŸ“ 좜λ ₯ 파일 ꡬ쑰 ``` outputs/ β”œβ”€β”€ h1_coefficients.csv # H1 νšŒκ·€ κ³„μˆ˜ β”œβ”€β”€ h2_model_architecture.csv # H2 (architecture) κ³„μˆ˜ β”œβ”€β”€ h2_model_architecture_metrics.csv # H2 (architecture) λͺ¨λΈ 적합도 β”œβ”€β”€ h2_model_founder.csv # H2 (founder) κ³„μˆ˜ β”œβ”€β”€ h2_model_founder_metrics.csv # H2 (founder) λͺ¨λΈ 적합도 β”œβ”€β”€ h3_coefficients.csv # H3 interaction κ³„μˆ˜ β”œβ”€β”€ h4_coefficients.csv # H4 interaction κ³„μˆ˜ β”‚ β”œβ”€β”€ figures/ β”‚ β”œβ”€β”€ Figure_1_Reversal.png # H1 vs H2 reversal pattern β”‚ β”œβ”€β”€ Figure_2a_H3.png # H3 interaction plot β”‚ └── Figure_2b_H4.png # H4 interaction plot β”‚ β”œβ”€β”€ bakeoff/ β”‚ β”œβ”€β”€ univariate_distributions.png # λ³€μˆ˜ 뢄포 β”‚ β”œβ”€β”€ moderator_overlap_is_hardware.png # Hardware κ²ΉμΉ¨ 뢄석 β”‚ β”œβ”€β”€ moderator_overlap_is_serial.png # Serial κ²ΉμΉ¨ 뢄석 β”‚ β”œβ”€β”€ h2_interaction_is_hardware.png # Hardware interaction β”‚ └── h2_interaction_is_serial.png # Serial interaction β”‚ └── reports/ # Quarto λ Œλ”λ§ κ²°κ³Ό β”œβ”€β”€ moderator_bakeoff_lean.html β”œβ”€β”€ moderator_bakeoff_lean.pdf β”œβ”€β”€ Progress_Report_W1_is_serial.html β”œβ”€β”€ Progress_Report_W1_is_serial.pdf β”œβ”€β”€ Progress_Report_W1_is_hardware.html └── Progress_Report_W1_is_hardware.pdf ``` ## πŸ“Š μƒμ„±λ˜λŠ” λ³΄κ³ μ„œ ### 1. `moderator_bakeoff_lean.qmd` β†’ `.html/.pdf` **λͺ©μ **: 두 κ°€μ§€ moderator (Architecture vs. Founder Credibility) 비ꡐ **λ‚΄μš©**: - H1 context (reversal pattern) - Architecture (is_hardware) 뢄석 - Founder Credibility (is_serial) 뢄석 - Side-by-side 비ꡐ ν…Œμ΄λΈ” - κ΅μˆ˜λ‹˜λ“€κ»˜ λ“œλ¦¬λŠ” 핡심 질문 - μ˜μ‚¬κ²°μ • ν”„λ ˆμž„μ›Œν¬ **핡심 발견**: is_hardwareκ°€ 더 κ°•ν•œ interaction pattern λ³΄μž„ (slope 차이 λͺ…ν™•) ### 2. `Progress_Report_W1_is_serial.qmd` β†’ `.html/.pdf` **λͺ©μ **: Founder Credibility (is_serial) moderator 쀑심 μ§„ν–‰ λ³΄κ³ μ„œ **λ‚΄μš©**: - Executive Summary - 이둠적 λ°°κ²½ (reputation-based trust mechanisms) - Data & Measurement - DV Validation (Scott Stern's A(tβ‚€) β†’ B+(t₁) framework) - H1, H2 (founder), H3, H4 전체 κ²°κ³Ό - λ™μ μœΌλ‘œ λ‘œλ“œλœ 톡계 κ²°κ³Ό 및 해석 - Figures μž„λ² λ“œ - References (APA format) ### 3. `Progress_Report_W1_is_hardware.qmd` β†’ `.html/.pdf` **λͺ©μ **: Architecture (is_hardware) moderator 쀑심 μ§„ν–‰ λ³΄κ³ μ„œ **λ‚΄μš©**: - Executive Summary - Integration cost 이둠적 framework (Baldwin & Clark, 2000) - Data & Measurement - DV Validation - H1, H2 (architecture) 전체 κ²°κ³Ό - H3/H4 (architecture) κ°œλ…μ  μ •μ˜ - Modularity theory 적용 - References ## 🧾 ν’ˆμ§ˆ 평가 체크리슀트 μŠ€ν¬λ¦½νŠΈκ°€ μžλ™μœΌλ‘œ λ‹€μŒ κΈ°μ€€μœΌλ‘œ λ³΄κ³ μ„œλ₯Ό ν‰κ°€ν•©λ‹ˆλ‹€: ### 1. 가독성 (Readability) - βœ… λ¬Έμž₯ λͺ…ν™•μ„± & μš©μ–΄ 일관성 - βœ… 논리 흐름 & μ‹œκ°μžλ£Œ μ„€λͺ… - βœ… λ…μž μΉœν™”μ„± ### 2. μžμ‘±μ„± (Self-contained) - βœ… λ°°κ²½ 없이도 이해 κ°€λŠ₯ - βœ… λͺ¨λ“  ν‘œΒ·κ·Έλ¦Ό 포함 & ν•΄μ„€ - βœ… κ²°κ³Ό 의미 & μ‹œμ‚¬μ  λͺ…ν™• ### 평가 관점 **Charles Fine (Operations/Architecture)**: - Integration cost theory 적용 - Practical relevance - Empirical rigor **Scott Stern (Entrepreneurship/Strategy)**: - Methodological soundness - Strategic insights - Causal inference - Policy implications ## πŸ”§ νŠΈλŸ¬λΈ”μŠˆνŒ… ### 데이터 νŒŒμΌμ„ 찾을 수 μ—†μŠ΅λ‹ˆλ‹€ ```bash βœ— Data directory not found ``` **ν•΄κ²°**: 데이터 파일 경둜λ₯Ό ν™•μΈν•˜μ„Έμš”: - Mac 둜컬: `/Users/hyunjimoon/MIT Dropbox/Angie.H Moon/tolzul/.../data/raw/` - Docker: `./data/raw/` ### Quartoλ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€ ```bash ⚠ Quarto not found - reports will not be rendered ``` **ν•΄κ²°**: Quarto μ„€μΉ˜ (선택사항) ```bash # macOS brew install quarto # λ˜λŠ” https://quarto.org/docs/get-started/ μ—μ„œ λ‹€μš΄λ‘œλ“œ ``` Quarto 없이도 .qmd νŒŒμΌλ“€μ€ μƒμ„±λ©λ‹ˆλ‹€. λ‚˜μ€‘μ— μˆ˜λ™μœΌλ‘œ λ Œλ”λ§ κ°€λŠ₯: ```bash quarto render moderator_bakeoff_lean.qmd ``` ### Python νŒ¨ν‚€μ§€ 였λ₯˜ ```bash ModuleNotFoundError: No module named 'pandas' ``` **ν•΄κ²°**: ```bash pip install pandas numpy matplotlib statsmodels scipy ``` μŠ€ν¬λ¦½νŠΈκ°€ μžλ™μœΌλ‘œ μ„€μΉ˜λ₯Ό μ‹œλ„ν•˜μ§€λ§Œ, μ‹€νŒ¨ μ‹œ μˆ˜λ™ μ„€μΉ˜ ν•„μš”ν•©λ‹ˆλ‹€. ### LaTeX 였λ₯˜ (PDF 생성) ```bash ⚠ PDF rendering skipped (LaTeX may not be installed) ``` **ν•΄κ²°**: LaTeX μ„€μΉ˜ (선택사항) ```bash # macOS brew install --cask mactex-no-gui # λ˜λŠ” TinyTeX (Quarto μΆ”μ²œ) quarto install tinytex ``` HTML λ Œλ”λ§μ€ LaTeX 없이도 μž‘λ™ν•©λ‹ˆλ‹€. ## πŸ“ μˆ˜λ™ μ‹€ν–‰ (단계별) μžλ™ 슀크립트 λŒ€μ‹  μˆ˜λ™μœΌλ‘œ μ‹€ν–‰ν•˜λ €λ©΄: ```bash # 1. 뢄석 μ‹€ν–‰ python run_analysis.py # 2. λ³΄κ³ μ„œ λ Œλ”λ§ quarto render moderator_bakeoff_lean.qmd quarto render Progress_Report_W1_is_serial.qmd quarto render Progress_Report_W1_is_hardware.qmd # 3. 평가 (μŠ€ν¬λ¦½νŠΈμ—μ„œ μžλ™ μƒμ„±λœ Python 슀크립트 μ‚¬μš©) # /tmp/evaluate_reports.py μ°Έμ‘° ``` ## 🎯 λ‹€μŒ 단계 1. **λ³΄κ³ μ„œ κ²€ν† **: ```bash open outputs/reports/moderator_bakeoff_lean.html ``` 2. **평가 κ²°κ³Ό 확인**: 슀크립트 좜λ ₯μ—μ„œ 점수 확인 3. **κ΅μˆ˜λ‹˜λ“€κ»˜ 곡유**: - PDF λ˜λŠ” HTML 파일 전달 - 핡심 질문 (moderator_bakeoff_lean.qmd) κ°•μ‘° 4. **ν”Όλ“œλ°± 반영**: - ν•„μš” μ‹œ μ½”λ“œ μˆ˜μ • (`modules/*.py`) - λ‹€μ‹œ `./run_full_pipeline.sh` μ‹€ν–‰ ## πŸ“ž 문의 λ¬Έμ œκ°€ λ°œμƒν•˜λ©΄: 1. 터미널 좜λ ₯의 μ—λŸ¬ λ©”μ‹œμ§€ 확인 2. 이 README의 νŠΈλŸ¬λΈ”μŠˆνŒ… μ„Ήμ…˜ μ°Έμ‘° 3. ν•„μš” μ‹œ κ°œλ°œμžμ—κ²Œ 문의 --- **λ§ˆμ§€λ§‰ μ—…λ°μ΄νŠΈ**: 2025-10-29 **버전**: 1.0