Learn R Programming

emax.glm (version 0.1.2)

update_probabilities: Construct normalized class properties for a given set of parameters

Description

Construct normalized class properties for a given set of parameters

Usage

update_probabilities(dprob, params)

Arguments

dprob

Probability distribution function to call. See 'dprob.list' for examples.

params

List of class parameters. Length of list is number of classes

Value

A n-by-k matrix of class probabilities (each row normalized to 1).

Examples

Run this code
# NOT RUN {
x <- model.matrix(~ factor(wool) + factor(tension), warpbreaks)
y <- warpbreaks$breaks

dprob <- make.dpois(x = x, y = y)
params <- list(rep(1, 4))

update_probabilities(dprob, params)

# }

Run the code above in your browser using DataLab