Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 11, 2024
1 parent 1605529 commit 2e1d405
Showing 1 changed file with 21 additions and 84 deletions.
105 changes: 21 additions & 84 deletions tests/testthat/_snaps/printing2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
Parameter | lm1 | lm2 | lm3
-----------------------------------------------------------------------------------------------------
(Intercept) | 5.01 (4.86, 5.15) | 3.68 ( 3.47, 3.89) | 4.21 ( 3.41, 5.02)
Species (versicolor) | 0.93 (0.73, 1.13) | -1.60 (-1.98, -1.22) | -1.81 (-2.99, -0.62)
Species (virginica) | 1.58 (1.38, 1.79) | -2.12 (-2.66, -1.58) | -3.15 (-4.41, -1.90)
Species [versicolor] | 0.93 (0.73, 1.13) | -1.60 (-1.98, -1.22) | -1.81 (-2.99, -0.62)
Species [virginica] | 1.58 (1.38, 1.79) | -2.12 (-2.66, -1.58) | -3.15 (-4.41, -1.90)
Petal Length | | 0.90 ( 0.78, 1.03) | 0.54 ( 0.00, 1.09)
Species (versicolor) * Petal Length | | | 0.29 (-0.30, 0.87)
Species (virginica) * Petal Length | | | 0.45 (-0.12, 1.03)
Species [versicolor] * Petal Length | | | 0.29 (-0.30, 0.87)
Species [virginica] * Petal Length | | | 0.45 (-0.12, 1.03)
-----------------------------------------------------------------------------------------------------
Observations | 150 | 150 | 150

Expand All @@ -22,11 +22,11 @@
Parameter | lm1 | lm2 | lm3
----------------------------------------------------------------------------------------
(Intercept) | 5.01*** (0.07) | 3.68*** (0.11) | 4.21*** (0.41)
Species (versicolor) | 0.93*** (0.10) | -1.60*** (0.19) | -1.81 ** (0.60)
Species (virginica) | 1.58*** (0.10) | -2.12*** (0.27) | -3.15*** (0.63)
Species [versicolor] | 0.93*** (0.10) | -1.60*** (0.19) | -1.81 ** (0.60)
Species [virginica] | 1.58*** (0.10) | -2.12*** (0.27) | -3.15*** (0.63)
Petal Length | | 0.90*** (0.06) | 0.54 (0.28)
Species (versicolor) * Petal Length | | | 0.29 (0.30)
Species (virginica) * Petal Length | | | 0.45 (0.29)
Species [versicolor] * Petal Length | | | 0.29 (0.30)
Species [virginica] * Petal Length | | | 0.45 (0.29)
----------------------------------------------------------------------------------------
Observations | 150 | 150 | 150

Expand All @@ -38,11 +38,11 @@
Parameter | lm1 | lm2 | lm3
----------------------------------------------------------------------------------------
(Intercept) | 5.01*** (0.07) | 3.68*** (0.11) | 4.21*** (0.41)
Species (versicolor) | 0.93*** (0.10) | -1.60*** (0.19) | -1.81 ** (0.60)
Species (virginica) | 1.58*** (0.10) | -2.12*** (0.27) | -3.15*** (0.63)
Species [versicolor] | 0.93*** (0.10) | -1.60*** (0.19) | -1.81 ** (0.60)
Species [virginica] | 1.58*** (0.10) | -2.12*** (0.27) | -3.15*** (0.63)
Petal Length | | 0.90*** (0.06) | 0.54 (0.28)
Species (versicolor) * Petal Length | | | 0.29 (0.30)
Species (virginica) * Petal Length | | | 0.45 (0.29)
Species [versicolor] * Petal Length | | | 0.29 (0.30)
Species [virginica] * Petal Length | | | 0.45 (0.29)
----------------------------------------------------------------------------------------
Observations | 150 | 150 | 150

Expand All @@ -54,11 +54,11 @@
Parameter | lm1 | lm2 | lm3
-----------------------------------------------------------------------------------------------------------------------------------------
(Intercept) | 5.01 (4.86, 5.15), p<0.001*** | 3.68 ( 3.47, 3.89), p<0.001*** | 4.21 ( 3.41, 5.02), p<0.001***
Species (versicolor) | 0.93 (0.73, 1.13), p<0.001*** | -1.60 (-1.98, -1.22), p<0.001*** | -1.81 (-2.99, -0.62), p=0.003 **
Species (virginica) | 1.58 (1.38, 1.79), p<0.001*** | -2.12 (-2.66, -1.58), p<0.001*** | -3.15 (-4.41, -1.90), p<0.001***
Species [versicolor] | 0.93 (0.73, 1.13), p<0.001*** | -1.60 (-1.98, -1.22), p<0.001*** | -1.81 (-2.99, -0.62), p=0.003 **
Species [virginica] | 1.58 (1.38, 1.79), p<0.001*** | -2.12 (-2.66, -1.58), p<0.001*** | -3.15 (-4.41, -1.90), p<0.001***
Petal Length | | 0.90 ( 0.78, 1.03), p<0.001*** | 0.54 ( 0.00, 1.09), p=0.052
Species (versicolor) * Petal Length | | | 0.29 (-0.30, 0.87), p=0.334
Species (virginica) * Petal Length | | | 0.45 (-0.12, 1.03), p=0.120
Species [versicolor] * Petal Length | | | 0.29 (-0.30, 0.87), p=0.334
Species [virginica] * Petal Length | | | 0.45 (-0.12, 1.03), p=0.120
-----------------------------------------------------------------------------------------------------------------------------------------
Observations | 150 | 150 | 150

Expand All @@ -70,77 +70,14 @@
Parameter | Estimate (SE) (lm1) | p (lm1) | Estimate (SE) (lm2) | p (lm2) | Estimate (SE) (lm3) | p (lm3)
-----------------------------------------------------------------------------------------------------------------------------------
(Intercept) | 5.01 (0.07) | <0.001 | 3.68 (0.11) | <0.001 | 4.21 (0.41) | <0.001
Species (versicolor) | 0.93 (0.10) | <0.001 | -1.60 (0.19) | <0.001 | -1.81 (0.60) | 0.003
Species (virginica) | 1.58 (0.10) | <0.001 | -2.12 (0.27) | <0.001 | -3.15 (0.63) | <0.001
Species [versicolor] | 0.93 (0.10) | <0.001 | -1.60 (0.19) | <0.001 | -1.81 (0.60) | 0.003
Species [virginica] | 1.58 (0.10) | <0.001 | -2.12 (0.27) | <0.001 | -3.15 (0.63) | <0.001
Petal Length | | | 0.90 (0.06) | <0.001 | 0.54 (0.28) | 0.052
Species (versicolor) * Petal Length | | | | | 0.29 (0.30) | 0.334
Species (virginica) * Petal Length | | | | | 0.45 (0.29) | 0.120
Species [versicolor] * Petal Length | | | | | 0.29 (0.30) | 0.334
Species [virginica] * Petal Length | | | | | 0.45 (0.29) | 0.120
-----------------------------------------------------------------------------------------------------------------------------------
Observations | 150 | | 150 | | 150 |

---

Code
print(out, groups = list(Species = c("Species (versicolor)",
"Species (virginica)"), Interactions = c(
"Species (versicolor) * Petal Length", "Species (virginica) * Petal Length"),
Controls = "Petal Length"))
Output
Parameter | lm1 | lm2
-----------------------------------------------------------------------------------
Species | |
Species (versicolor) | -1.60 (-1.98, -1.22) | -1.69 (-2.80, -0.57)
Species (virginica) | -2.12 (-2.66, -1.58) | -1.19 (-2.37, -0.01)
Interactions | |
Species (versicolor) * Petal Length | | -0.01 (-0.56, 0.53)
Species (virginica) * Petal Length | | -0.15 (-0.69, 0.39)
Controls | |
Petal Length | 0.90 ( 0.78, 1.03) | 0.39 (-0.13, 0.90)
-----------------------------------------------------------------------------------
Observations | 150 | 150

---

Code
print(out, groups = list(Species = c("Species (versicolor)",
"Species (virginica)"), Interactions = c(
"Species (versicolor) * Petal Length", "Species (virginica) * Petal Length"),
Controls = "Petal Length"), select = "{estimate}{stars}")
Output
Parameter | lm1 | lm2
----------------------------------------------------------
Species | |
Species (versicolor) | -1.60*** | -1.69**
Species (virginica) | -2.12*** | -1.19 *
Interactions | |
Species (versicolor) * Petal Length | | -0.01
Species (virginica) * Petal Length | | -0.15
Controls | |
Petal Length | 0.90*** | 0.39
----------------------------------------------------------
Observations | 150 | 150

---

Code
print(out, groups = list(Species = c("Species (versicolor)",
"Species (virginica)"), Interactions = c(
"Species (versicolor) * Petal Length", "Species (virginica) * Petal Length"),
Controls = "Petal Length"), select = "{estimate}|{p}")
Output
Parameter | Estimate (lm1) | p (lm1) | Estimate (lm2) | p (lm2)
-------------------------------------------------------------------------------------------
Species | | | |
Species (versicolor) | -1.60 | <0.001 | -1.69 | 0.003
Species (virginica) | -2.12 | <0.001 | -1.19 | 0.048
Interactions | | | |
Species (versicolor) * Petal Length | | | -0.01 | 0.961
Species (virginica) * Petal Length | | | -0.15 | 0.574
Controls | | | |
Petal Length | 0.90 | <0.001 | 0.39 | 0.138
-------------------------------------------------------------------------------------------
Observations | 150 | | 150 |

# combination of different models

Code
Expand All @@ -152,7 +89,7 @@
--------------------------------------------------------------------------------
(Intercept) | 0.91 ( 0.75, 1.07) | 0.68 (-0.54, 1.91) | 1.41 ( 1.06, 1.75)
child | -1.23 (-1.39, -1.08) | -1.67 (-1.84, -1.51) | -0.53 (-0.77, -0.29)
camper (1) | 1.05 ( 0.88, 1.23) | 0.94 ( 0.77, 1.12) | 0.58 ( 0.39, 0.78)
camper [1] | 1.05 ( 0.88, 1.23) | 0.94 ( 0.77, 1.12) | 0.58 ( 0.39, 0.78)
zg | | | 0.13 ( 0.05, 0.21)
# Fixed Effects (Zero-Inflation Component)
Expand Down

0 comments on commit 2e1d405

Please sign in to comment.