Learn R Programming

dst (version 1.8.0)

extFrame: 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)

Value

zxtnd The bca with its frame extended

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.

Author

Claude Boivin

Examples

Run this code
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")

Run the code above in your browser using DataLab