Description Usage Arguments Value Methods (by generic) Examples
Constructor for object of class eqs_bag
defined as a
collection of many eqs
(s).
1 2 3 4 |
... |
( |
name |
(chr) the name of the |
reference |
(chr, default NA) an optional reference for the
bag of |
last_update |
(Date, default today) the date of the last bag update. |
x |
an object used to select a method |
an eqs_bag
object
invisible x
print
: Method to print eqs_bag
bag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | eq1 <- eq(age = 0.3, bmi = -0.5,
name = "cl_test_1",
outcome = "kcal/day",
strata = list(sex = "male", nyha = 1)
)
eq2 <- eq(age = 0.5, bmi = -0.3, # change strata wrt eq1
name = "cl_test_2",
outcome = "kcal/day",
strata = list(sex = "female", nyha = 1)
)
eq3 <- eq(age = -0.3, bmi = 0.5,
name = "cl_test_3",
outcome = "kcal/day",
strata = list(sex = "male", nyha = 2)
)
eq4 <- eq(age = -0.5, bmi = 0.3,
name = "cl_test_4",
outcome = "kcal/day",
strata = list(sex = "female", nyha = 2)
)
eq9 <- eq(age = -0.1, weight = 0.2, # change var, strata
name = "cl_test_9",
outcome = "kcal/month",
strata = list(sex = "female")
)
eq10 <- eq(age = -0.2, weight = 0.1, # change var, strata
name = "cl_test_10",
outcome = "kcal/month",
strata = list(sex = "male")
)
eq11 <- eq(age = 0.1, weight = -0.2, # change var, strata
name = "cl_test_11",
outcome = "kcal/day",
strata = list(sex = "female")
)
eq12 <- eq(age = 0.2, weight = -0.2, # change var, strata
name = "cl_test_12",
outcome = "kcal/day",
strata = list(sex = "male")
)
eqs1 <- eqs(eq1, eq2, eq3, eq4,
name = "eqs1",
reference = "ref-a"
)
eqs2 <- eqs(eq9, eq10, eq11, eq12,
name = "eqs2",
reference = "ref-b"
)
eqs_bag_test <- eqs_bag(eqs1, eqs2,
name = "overall-bag",
reference = "equationer-test-bag"
)
eq1 <- eq(age = 0.3, bmi = -0.5, name = "eq-1", outcome = "kcal/day",
strata = list(sex = "male", nyha = 1)
)
eq2 <- eq(age = 0.5, bmi = -0.3, name = "eq-2", outcome = "kcal/day",
strata = list(sex = "female", nyha = 1)
)
eq3 <- eq(age = -0.3, bmi = 0.5, name = "eq-3", outcome = "kcal/day",
strata = list(sex = "male", nyha = 2)
)
eq4 <- eq(age = -0.5, bmi = 0.3, name = "eq-4", outcome = "kcal/day",
strata = list(sex = "female", nyha = 2)
)
eq9 <- eq(age = -0.1, weight = 0.2, name = "eq-9", outcome = "kcal/month",
strata = list(sex = "female")
)
eq10 <- eq(age = -0.2, weight = 0.1, name = "eq-10", outcome = "kcal/month",
strata = list(sex = "male")
)
eq11 <- eq(age = 0.1, weight = -0.2, name = "eq-11", outcome = "kcal/day",
strata = list(sex = "female")
)
eq12 <- eq(age = 0.2, weight = -0.2, name = "eq-12", outcome = "kcal/day",
strata = list(sex = "male")
)
eqs1 <- eqs(eq1, eq2, eq3, eq4, name = "eqs-a", reference = "ref-a")
eqs2 <- eqs(eq9, eq10, eq11, eq12, name = "eqs-b", reference = "ref-b")
eqs_bag(eqs1, eqs2, name = "ubesp19", reference = "DG et.al 2019")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.