create.poset: Create a poset

View source: R/create.poset.R

create.posetR Documentation

Create a poset

Description

This function creates a poset for use in a pim model based on a number of observations and a comparison type. This function is called from new.pim.poset and returns a list that can be used as a value for its argument compare.

Usage

create.poset(compare = c("unique", "all"), n)

Arguments

compare

a character value, either 'unique' or 'all'

n

an single integer value indicating how many observations there are in the model.

Value

A named list with 2 elements, called "L" and "R", containing the selection indices for the left hand and right hand side of a pim.

Examples

create.poset(n=10)
create.poset('all',n=4)

pim documentation built on April 3, 2025, 9:30 p.m.