tidy_beta: Tidy Functions to make plotting easy

Description Usage Arguments Value Examples

View source: R/plotextra.R

Description

Tidy Functions to make plotting easy

Absolute value of sigma scaled by the overall maximum absolute value

Usage

1
2
3
tidy_beta(obj)

abs_sigma(sigma_df)

Arguments

obj

A Simrel Object

sigma_df

A tidy covariance data frame generated by tidy_sigma function

Value

A tibble with three columns: Predictor, Response and BetaCoef

Another data.frame (tibble) of same dimension with absolute covarinace scaled by overall maximum absolute values

Examples

1
2
3
4
5
6
7
8
sobj <- multisimrel()
beta_df <- tidy_beta(sobj)
beta_df
sobj <- multisimrel()
sobj %>% 
    cov_mat("zy") %>% 
    tidy_sigma() %>% 
    abs_sigma()

simulatr/simrel documentation built on Sept. 15, 2021, 12:44 a.m.