Description Usage Arguments Value Methods (by class) Examples
Extract the equation(s) outcome(s)
1 2 3 4 5 6 7 8 9 10 | get_outcome(x)
## S3 method for class 'eq'
get_outcome(x)
## S3 method for class 'eqs'
get_outcome(x)
## S3 method for class 'eqs_bag'
get_outcome(x)
|
x |
the object |
(chr) outcomes of the equation x
(dependent variable)
eq
: Extract the outcome of the given
eq
uation object.
eqs
: Extract the outcome of the given
eqs
object.
eqs_bag
: Extract all the possible outcomes for some
eq
ation in the eqs_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 | library(equationer)
eq_test <- eq(age = 0.1, bmi = -0.3,
name = "first eq_test",
outcome = "kcal/day"
)
get_outcome(eq_test)
library(equationer)
eq_test <- eq(age = 0.1, bmi = -0.3,
name = "eq_test",
outcome = "kcal/day",
strata = list(sex = "female")
)
eq2_test <- eq(age = 0.1, bmi = -0.3,
name = "eq2_test",
outcome = "kcal/day",
strata = list(sex = "male")
)
eqs_test <- eqs(eq_test, eq2_test, name = "eqs-test")
get_outcome(eqs_test)
library(equationer)
eq_test <- eq(age = 0.1, bmi = -0.3,
name = "eq_test",
outcome = "kcal/day",
strata = list(sex = "female")
)
eq2_test <- eq(age = 0.1, bmi = -0.3,
name = "eq2_test",
outcome = "kcal/day",
strata = list(sex = "male")
)
eq3_test <- eq(age = -0.1, bmi = 0.3,
name = "eq_test",
outcome = "kcal/month",
strata = list(sex = "male", nyha = 1)
)
eq4_test <- eq(age = -0.1, bmi = 0.3,
name = "eq2_test",
outcome = "kcal/month",
strata = list(sex = "unknown", nyha = 2)
)
eqs_test <- eqs(eq_test, eq2_test, name = "eqs-test")
eqs2_test <- eqs(eq3_test, eq4_test, name = "eqs2-test")
eqs_bag1_test <- eqs_bag(eqs_test, eqs2_test,
name = "a",
reference = "b"
)
get_outcome(eqs_bag1_test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.