estimate_se: estimate_se

View source: R/estimate_se.R

estimate_seR Documentation

estimate_se

Description

Internal Function to calculate bootstrap estimate of mean and standard error of gaussian parameters

Usage

estimate_se(x_i, p_y_given_x_3d, num_obs, reps = 20)

Arguments

x_i

A single variable/column of data

p_y_given_x_3d

A 3D array of numerics in range (0, 1), that represent the probability that each observed x variable belongs to n_hidden latent variables of dimension dim_hidden. p_y_given_x_3d has dimensions (n_hidden, n_samples, dim_hidden).

num_obs

A 2D array of dimensions (n_hidden, dim_hidden) representing expected counts of n_hidden x dim_hidden summed over data samples (rows) - can be non-integer

reps

numeric to specify number of bootstrap estimates to calculate. Default = 20

Value

Returns a list of 4 numerics names m1, m2, se1, se2 which are used in smoothing calculations by estimate_parameters_gaussian


jpkrooney/rcorex documentation built on July 25, 2022, 1:37 a.m.