-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return a Tuple from simplelinreg (#16)
* Return a Tuple from simplelinreg * add tests * Bump minor version b/c breaking change Co-authored-by: Phillip Alday <[email protected]>
- Loading branch information
Showing
4 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "MixedModelsMakie" | ||
uuid = "b12ae82c-6730-437f-aff9-d2c38332a376" | ||
authors = ["Phillip Alday <[email protected]>, Douglas Bates <[email protected]> and contributors"] | ||
version = "0.1.2" | ||
version = "0.2.0" | ||
|
||
[deps] | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[deps] | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
using MixedModelsMakie | ||
using Random # we don't depend on exact PRNG vals, so no need for StableRNGs | ||
using Test | ||
|
||
@testset "There are no tests" begin | ||
@testset "There are no graphical tests" begin | ||
@test true | ||
end | ||
|
||
@testset "Simple linear regression" begin | ||
a, b = 1, 2 | ||
x = collect(1:10) | ||
y = randn(MersenneTwister(42), 10) * 0.1 | ||
@. y += a + b * x | ||
result = simplelinreg(x, y) | ||
@test result isa Tuple | ||
@test a ≈ result[1] atol=0.05 | ||
@test b ≈ result[2] atol=0.05 | ||
end |
458b799
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
458b799
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/38044
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: