Sim3Way: Replicate Laplace Noise for 3-way table

View source: R/sim3way.R

Sim3WayR Documentation

Replicate Laplace Noise for 3-way table

Description

Replicate Laplace Noise for 3-way table

Usage

Sim3Way(Nrep, intab, bpar, marPack, W = NULL)

Arguments

Nrep

Number of replication

intab

True cell values

bpar

Laplace noise parameter

marPack

list of lists of vectors with margins to put in model

W

(optional) weight vector of same length as d + length(marPack) = total number of predictors.

Value

A list with the following:

  • param - mean parameter estimates of Nrep replications

  • rmse - Root mean square error of param estimates


jlivsey/Dvar documentation built on July 13, 2024, 6:10 a.m.