summary.medic | R Documentation |
Make cluster characterizing summaries.
## S3 method for class 'medic'
summary(
object,
only = NULL,
clusters = NULL,
outputs = "all",
additional_data = NULL,
...
)
object |
An object for which a summary is desired. |
only |
< The default |
clusters |
< The default |
outputs |
A character vector naming the desired characteristics to output. The default names all possible output types. |
additional_data |
A data frame with additional data that may be
(left-)joined onto the |
... |
Additional arguments passed to the specific summary sub-function. |
A list of clustering characteristics of class summary.medic
is returned. It
can contain any of the following characteristics:
The number of individuals assigned to each cluster and the associated frequency of assignment.
The number of individuals with a specific ATC code within a cluster. Moreover, it calculates the percentage of people with this medication assigned to this cluster and the percent of people within the cluster with this medication.
The number of ATC codes an individual has, and then outputs the number of individuals within a cluster that has that many ATC codes. Moreover, various relevant percentages or calculated. See Value below for more details on these percentages.
The number of unique timing trajectories in each cluster, and the average timing trajectories in each cluster.
The number of people with unique timing trajectory and ATC group, as given by
atc_groups
, in each cluster.
clust <- medic(
complications,
id = id,
atc = atc,
k = 3:5,
timing = first_trimester:third_trimester
)
summary(clust)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.