Learn R Programming

CombMSC (version 1.4.2.1)

weightsGivenSize: Generate weight vector based on prior on model size

Description

Given a model list, and a numeric vector of prior weights on model size, generates a weight vector for the entire model list based on the prior.

Usage

weightsGivenSize(vec, modlist)

Arguments

vec

Vector of weights on model size. The first entry is the weight on the model with 0 terms, the second entry is the weight for models with 1 term, etc.

modlist

A list of models