extFrame: Extension of the frame of discernment of a variable

View source: R/extFrame.R

extFrameR Documentation

Extension of the frame of discernment of a variable

Description

This function works on a basic chance assignment (bca) x defined on a single variable. Iy= t Allows the addition of new values to the frame of discernment.

Usage

extFrame(x, use_ssnames = FALSE, lab = NULL)

Arguments

x

An object of bca class, i.e. a basic chance assignment defined on one variable

use_ssnames

Default= FALSE. Put TRUE if use of subset names is wanted.

lab

A character vector containing the names of the elements to add to the frame of discernment.

Value

zxtnd The bca with its frame extended

Author(s)

Claude Boivin

Examples

s1_e1 <- bca(tt = matrix(c(1,0,1,1),nrow = 2, byrow = TRUE), 
m = c(0.6,0.4), cnames = c("S1","S2"), varnames = "v1", idvar = 1) 
s13_names <- extFrame(s1_e1, lab = "S3", use_ssnames =TRUE)
s13 <- extFrame(s1_e1, lab = "S3")

RAPLER/dst-1 documentation built on Oct. 15, 2024, 9:24 p.m.