compare_group: Compare variables in two groups

View source: R/compare_group.R

compare_groupR Documentation

Compare variables in two groups

Description

Compute the differences of the random effects for variables from two groups.

Usage

compare_group(GCMlasso_obj = GCMlasso_obj, grp1, grp2, var,
  credible_level = 0.95)

Arguments

GCMlasso_obj

GCMlasso object.

grp1

levels in the cluster variable that belong to group1.

grp2

levels in the cluster variable that belong to group2.

var

variables to be compared.

credible_level

level of the credible interval.

Value

Posterior means and credible intervals of the differences of variables in two groups.

Examples

compare_group(GCMlasso_obj=GCMlasso_obj,grp1=1:2,grp2=3:4,
 var=1:15,credible_level=0.95)

tuanio/GCMlasso documentation built on April 26, 2022, 6:01 p.m.