Learn R Programming

cbass (version 0.1)

p.mu: Predict vector of probabilities from vector of latent means

Description

Predict vector of probabilities from vector of latent means

Usage

p.mu(mu, d = NULL, bound = NULL, npts = 100, rel.tol = 1e-04)

Value

A d-length numeric vector of probabilities given input latent means

Arguments

mu

d-length vector of latent means

d

input to avoid computing length of mu

bound

input of mu[1] to avoid computation

npts

number of integration points, default 100

rel.tol

number of integration points, default 1e-4

Examples

Run this code
set.seed(1)
mu <- rnorm(5)
p.mu(mu)

Run the code above in your browser using DataLab