Description Usage Arguments Value Methods (by class) Examples
Extract the equation(s) strata
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## S3 method for class 'eqs_bag'
get_last_update(x)
## Default S3 method:
get_reference(x)
## S3 method for class 'eqs'
get_reference(x)
## S3 method for class 'eqs_bag'
get_reference(x)
get_strata(x)
## S3 method for class 'eq'
get_strata(x)
## S3 method for class 'eqs'
get_strata(x)
## S3 method for class 'eqs_bag'
get_strata(x)
|
x |
the object |
(chr) levels' strata for the eq
uation x
(list) of the strata (factors) for the
eq
uations included in the eqs
x
.
eqs_bag
: Extract the last date in which
eqs_bag
has been updated.
default
: Extract the strata of the given
eq
uation object.
eqs
: Extract the strata of the given
eqs
object.
eqs_bag
: Extract the strata of the given
eqs_bag
object.
eq
: Extract the strata of the given
eq
uation object.
eqs
: Extract the strata of the given
eqs
object.
eqs_bag
: Extract and merge the levels for all the
strata in any eq
uations of the
eqs_bag
object.
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 | library(equationer)
eq_test <- eq(age = 0.1, bmi = -0.3,
name = "eq_test",
outcome = "kcal/day",
strata = list(sex = "female")
)
get_outcome(eq_test)
eq2_test <- eq(age = 0.1, bmi = -0.3,
name = "eq2_test",
outcome = "kcal/day",
strata = list(sex = "female", nyha = 1)
)
get_strata(eq2_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_strata(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/day",
strata = list(sex = "male", nyha = 1)
)
eq4_test <- eq(age = -0.1, bmi = 0.3,
name = "eq2_test",
outcome = "kcal/day",
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_strata(eqs_bag1_test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.