make_strata_df {YAPSA} | R Documentation

## Group strata from different stratification axes

### Description

For a comparison of the strata from different orthogonal stratification axes, i.e. othogonal SMCs, the strata have to be grouped and reformatted. This function does this task for the comparison by cosine similarity of signature exposures. Output of this function is the basis for applying `plot_strata` and `make_comparison_matrix`. It is called by the wrapper functions `compare_SMCs`, `run_plot_strata_general` or `run_comparison_general`.

### Usage

    make_strata_df(
      in_stratification_lists_list,
      in_remove_signature_ind = NULL,
      in_additional_stratum = NULL
    )

### Arguments

`in_stratification_lists_list` | List of lists with entries from different (orthogonal) stratification axes or SMCs
`in_remove_signature_ind` | Omit one of the signatures in `in_signatures_ind_df` for the comparison if non-NULL. The parameter specifies the index of the signature to be removed.
`in_additional_stratum` | Include an additionally supplied stratum in comparison in non-NULL.

### Value

A list with entries `strata_df`, `number_of_SMCs`, `number_of_strata`.

- `strata_df`: Pasted numerical data frame of all strata (these are going to be compared e.g. by `make_comparison_matrix`).

- `number_of_SMCs`: Number of orthogonal stratifications in `in_stratification_lists_list` and additional ones.

- `number_of_strata`: Cumulative number of strata (sum over the numbers of strata of the different stratifications in `in_stratification_lists_list`) and additional ones.

### See Also

`plot_strata`

`make_comparison_matrix`

`compare_SMCs`

`run_plot_strata_general`

`run_comparison_general`

### Examples

     NULL

[Package YAPSA version 1.18.0 Index]