Data Types

Algebraic data types for statistical analyses

stype_classes

Stype classes

v_binary() bnry() is_binary() as_binary() as.character(<v_binary>) as_canonical(<v_binary>)

Binary vectors

v_character() chr() is_character() as_character() as.character(<v_character>) as_canonical(<v_character>)

Character vectors

v_continuous() cont() is_continuous() as_continuous() as.character(<v_continuous>) as_canonical(<v_continuous>)

Continuous vectors

v_continuous_nonneg() nneg() is_continuous_nonneg() is_nonneg() as_nonneg_continuous() as_canonical(<v_continuous_nonneg>)

Non-negative continuous vectors

v_count() cnt() is_count() as_count() as.character(<v_count>) as_canonical()

Count vectors

v_event_time() tmev() is_event_time() as_time_to_event() as_event_time() as_canonical(<v_event_time>)

Time to event vectors

v_nominal() nom() is_nominal() as_canonical(<v_nominal>)

Nominal categorical vectors

v_ordered() ord() is_ordered() as_canonical(<v_ordered>)

Ordered categorical vectors

v_rcensored() rcen() is_v_rcensored() is_rcensored() as.character(<v_rcensored>) as_canonical(<v_rcensored>)

Right censored vectors

get_time() get_censored() get_censor_reason() get_outcome() get_outcome_reason()

Get elements from v_rcensored

Contexts

Analysis-specific contextual information for styped vectors

context

stype contexts

get_context() get_short_label() get_long_label() get_description() get_derivation() get_purpose() get_security_type() set_context() set_short_label() set_long_label() set_description() set_derivation() set_purpose() set_security_type()

Get an object's context or elements thereof

is_study_role() is_identifier() is_index() is_outcome() is_censoring() is_competing() is_exposure() is_covariate() is_weight() is_intermediate() is_other()

Check a study role

stype_df_l() binary_l character_l continuous_l continuous_nonneg_l count_l event_time_l nominal_l ordered_l rcensored_l covariate_l censoring_l competing_l exposure_l identifier_l index_l intermediate_l other_l outcome_l weight_l constant_l not_constant_l tagged_l not_tagged_l tag_l() any_tags_l() all_tags_l() only_tags_l() data_summary_l vec_data_l context_l internal_name_l extra_descriptors_l derivation_l short_label_l long_label_l description_l security_type_l purpose_l study_role_l tags_l

Lenses for stype vectors

is_constant() is_not_constant() is_tagged() is_not_tagged() has_tag() has_any_tags() has_all_tags() has_only_tags()

Useful stype predicates

purpose-class

Purpose object

Data summary

Automatically generated summary information about styped vectors

data_summary-class

A call to describe returns a data_summary object

get_data_summary()

Get the summary from a stype variable

stype_df_l() binary_l character_l continuous_l continuous_nonneg_l count_l event_time_l nominal_l ordered_l rcensored_l covariate_l censoring_l competing_l exposure_l identifier_l index_l intermediate_l other_l outcome_l weight_l constant_l not_constant_l tagged_l not_tagged_l tag_l() any_tags_l() all_tags_l() only_tags_l() data_summary_l vec_data_l context_l internal_name_l extra_descriptors_l derivation_l short_label_l long_label_l description_l security_type_l purpose_l study_role_l tags_l

Lenses for stype vectors