Skip to content

Commit

Permalink
missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Sep 6, 2023
1 parent e09ef11 commit 29ac7cc
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions test/regressionmodel.jl
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
module TestRegressionModel

using Test, LinearAlgebra, StatsAPI
using StatsAPI: RegressionModel, crossmodelmatrix, vif
using StatsAPI: RegressionModel, crossmodelmatrix

struct MyRegressionModel <: RegressionModel
end

StatsAPI.modelmatrix(::MyRegressionModel) = [1 2; 3 4]
StatsAPI.vcov(::MyRegressionModel) = [1 0; 0 1]

struct MyRegressionModel2 <: RegressionModel
end

StatsAPI.modelmatrix(::MyRegressionModel2) = [1 2; 1 2]
StatsAPI.vcov(::MyRegressionModel2) = [1 0; 0 1]

struct MyRegressionModel3 <: RegressionModel
end

StatsAPI.modelmatrix(::MyRegressionModel3) = [1 2 3; 1 2 3]
StatsAPI.vcov(::MyRegressionModel3) = [1 0 0; 0 1 0; 0 0 1]


@testset "TestRegressionModel" begin
m = MyRegressionModel()
Expand Down

0 comments on commit 29ac7cc

Please sign in to comment.