compute.uset: Mixture porportion group identifier

Description Usage Arguments Value Details

View source: R/main.R

Description

Computes the mixture proportion group identifier.

Usage

1
compute.uset(n, m, p, qvs, q.use)

Arguments

n

sample size, must be at least 1.

m

number of different mixture proportions, must be at least 2.

p

number of populations, must be at least 2.

qvs

a numeric matrix of size p by m containing all possible mixture proportions (i.e., the probability of belonging to each population k, k=1,...,p.).

q.use

a numeric matrix of size p by n containing the mixture proportions for each person in the sample.

Value

A numeric vector of length n containing the mixture proportion group to which each person belongs.

Details

The matrix qvs contains all mixture proportions. The function compute.uset assigns individual i to mixture proportion u, for u=1,…,m, if q_i=qvs_{u}.


tpgarcia/stride documentation built on March 18, 2021, 3:42 p.m.