create.poset: Create a poset

Description Usage Arguments Value Examples

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

1
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

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


Search within the pim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.