similarity: Function to compare how close two "param" beta's are

Description Usage Arguments Value

View source: R/func_visual.R

Description

Function to compare how close two "param" beta's are

Usage

1
similarity(beta0, beta)

Arguments

beta0

a "param" beta to be compared with, including one lambda value

beta

a "param" beta that can have one or multiple lambda values

Value

a list containing: (1) the similarity between the two beta's, defined by the proportion of the correct boundaries; (2) sse, sum of squre error of all the differences on the boundary, with repect to beta0; (3) sim.vec, a vector indicating which boundaries are the same.


WangTJ/glidars documentation built on Jan. 20, 2021, 6:32 p.m.