# π 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