Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lectures/ols.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ These variables and other data used in the paper are available for download on D
We will use pandas' `.read_stata()` function to read in data contained in the `.dta` files to dataframes

```{code-cell} python3
df1 = pd.read_stata('https://github.com/QuantEcon/lecture-python/blob/master/source/_static/lecture_specific/ols/maketable1.dta?raw=true')
df1 = pd.read_stata('https://github.com/QuantEcon/lecture-python.myst/raw/refs/heads/main/lectures/_static/lecture_specific/ols/maketable1.dta')
df1.head()
```

Expand Down Expand Up @@ -323,7 +323,7 @@ Let's estimate some of the extended models considered in the paper
(Table 2) using data from `maketable2.dta`

```{code-cell} python3
df2 = pd.read_stata('https://github.com/QuantEcon/lecture-python/blob/master/source/_static/lecture_specific/ols/maketable2.dta?raw=true')
df2 = pd.read_stata('https://github.com/QuantEcon/lecture-python.myst/raw/refs/heads/main/lectures/_static/lecture_specific/ols/maketable2.dta')

# Add constant term to dataset
df2['const'] = 1
Expand Down Expand Up @@ -475,7 +475,7 @@ used for estimation)

```{code-cell} python3
# Import and select the data
df4 = pd.read_stata('https://github.com/QuantEcon/lecture-python/blob/master/source/_static/lecture_specific/ols/maketable4.dta?raw=true')
df4 = pd.read_stata('https://github.com/QuantEcon/lecture-python.myst/raw/refs/heads/main/lectures/_static/lecture_specific/ols/maketable4.dta')
df4 = df4[df4['baseco'] == 1]

# Add a constant variable
Expand Down
Loading