Skip to content

Commit

Permalink
fix dataset error
Browse files Browse the repository at this point in the history
  • Loading branch information
junder873 committed Mar 18, 2024
1 parent a2a75a6 commit d590e97
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Setup for the following examples:
```@meta
DocTestSetup = quote # hide
using RegressionTables, DataFrames, RDatasets, FixedEffectModels, GLM, MixedModels;
df = dataset("datasets", "iris");
df = RDatasets.dataset("datasets", "iris");
df[!,:isSmall] = df[!,:SepalWidth] .< 2.9;
rr1 = reg(df, @formula(SepalLength ~ SepalWidth));
rr2 = reg(df, @formula(SepalLength ~ SepalWidth + PetalLength + fe(Species)));
Expand Down Expand Up @@ -1315,7 +1315,7 @@ Pseudo R2 0.006 0.006 0.297 0.297
Displays whether or not the standard errors are clustered and in what ways.

```jldoctest
df_cigar = dataset("plm", "Cigar");
df_cigar = RDatasets.dataset("plm", "Cigar");
rr_c1 = reg(df_cigar, @formula(Sales ~ NDI + fe(State) + fe(Year)), Vcov.cluster(:State));
rr_c2 = reg(df_cigar, @formula(Sales ~ NDI + Price + fe(State) + fe(Year)), Vcov.cluster(:State, :Year));
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To install the package, type in the Julia command prompt
```@example main_data
using RegressionTables, DataFrames, FixedEffectModels, RDatasets, GLM
df = dataset("datasets", "iris")
df = RDatasets.dataset("datasets", "iris")
rr1 = reg(df, @formula(SepalLength ~ SepalWidth + fe(Species)))
rr2 = reg(df, @formula(SepalLength ~ SepalWidth + PetalLength + fe(Species)))
Expand Down
2 changes: 1 addition & 1 deletion docs/src/keep_drop_order.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DocTestSetup = quote # hide
using RegressionTables, DataFrames, FixedEffectModels, RDatasets
df = dataset("datasets", "iris")
df = RDatasets.dataset("datasets", "iris")
df[!,:SpeciesDummy] = df[!,:Species]
rr1 = reg(df, @formula(SepalLength ~ SepalWidth + fe(SpeciesDummy)))
Expand Down
2 changes: 1 addition & 1 deletion test/GLFixedEffectModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using GLFixedEffectModels, GLM, RDatasets, Test

# include("src/RegressionTables.jl")
df = dataset("datasets", "iris")
df = RDatasets.dataset("datasets", "iris")
df[!, :isSmall] = df[!, :SepalWidth] .< 2.9
df[!, :isWide] = df[!, :SepalWidth] .> 2.5
df[!, :binary] = @. ifelse(df[!, :PetalWidth] .> 1.0, 1.0, 0.0)
Expand Down
2 changes: 1 addition & 1 deletion test/RegressionTables.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using RegressionTables
using FixedEffectModels, GLM, RDatasets, Test

df = dataset("datasets", "iris")
df = RDatasets.dataset("datasets", "iris")
df[!, :isSmall] = df[!, :SepalWidth] .< 2.9
df[!, :isWide] = df[!, :SepalWidth] .> 2.5

Expand Down
2 changes: 1 addition & 1 deletion test/default_changes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ own test set
using RegressionTables
using FixedEffectModels, GLM, RDatasets, Test

df = dataset("datasets", "iris")
df = RDatasets.dataset("datasets", "iris")
df[!, :isSmall] = df[!, :SepalWidth] .< 2.9
df[!, :isWide] = df[!, :SepalWidth] .> 2.5

Expand Down

0 comments on commit d590e97

Please sign in to comment.