realization: An ordinal tensor randomly simulated from the cumulative...

Description Usage Arguments Value References Examples

View source: R/basicfunction.R

Description

Simulate an ordinal tensor from the cumulative logistic model with the parameter tensor and the cut-off points

Usage

1
realization(theta,omega)

Arguments

theta

a continuous-valued tensor (latent parameters)

omega

the cut-off points

Value

an ordinal tensor randomly simulated from the cumulative logistic model

References

Lee, C., & Wang, M. (2020). Tensor denoising and completion based on ordinal observations. arXiv preprint arXiv:2002.06524.

Examples

1
2
3
4
indices <- c(10,20,30)
arr <- array(runif(prod(indices)),dim = indices)
b <- qnorm((1:3)/4)
r_sample <- realization(arr,b);r_sample

tensorordinal documentation built on Jan. 13, 2021, 9:17 p.m.