setDefaultSimulatedParameters {blatent}R Documentation

Creates simulation specifications for simulating data in blatent

Description

Sets the specifications for the generation of the types of parameters in the simulation. Currently comprised of a list of unevaluated expressions (encapsulated in quotation marks; not calls for ease of user input) that will be evaluated by simulation function to generate parameters. Input must be in the form of a random number generation function to be called, surrounded by quotation marks.

Usage

setDefaultSimulatedParameters(
  observedIntercepts = "runif(n = 1, min = -2, max = 2)",
  observedMainEffects = "runif(n = 1, min = 0, max = 2)",
  observedInteractions = "runif(n = 1, min = -2, max = 2)",
  latentIntercepts = "runif(n = 1, min = -1, max = 1)",
  latentMainEffects = "runif(n = 1, min = -1, max = 1)",
  latentInteractions = "runif(n = 1, min = -0.5, max = 0.5)",
  latentJointMultinomial = "rdirichlet(n = 1, alpha = rep(1,nCategories))"
)

Arguments

observedIntercepts

The data generating function for all intercepts for observed variables. Defaults to "runif(n = 1, min = -2, max = 2)".

observedMainEffects

The data generating function for the main effects for observed variables. Defaults to "runif(n = 1, min = 0, max = 2)".

observedInteractions

The data generating function for all interactions for observed variables. Defaults to "runif(n = 1, min = -2, max = 2)".

latentIntercepts

The data generating function for all intercepts for Bernoulli latent variables modeled with univariate structural models. Defaults to "runif(n = 1, min = -1, max = 1)".

latentMainEffects

The data generating function for the main effects for Bernoulli latent variables modeled with univariate structural models. Defaults to "runif(n = 1, min = -1, max = 1)".

latentInteractions

The data generating function for all interactions for Bernoulli latent variables modeled with univariate structural models. Defaults to "runif(n = 1, min = -0.5, max = 0.5)".

latentJointMultinomial

The data generating function for all interactions for multivariate Bernoulli latent variables modeled with joint structural models. Defaults to "rdirichlet(n = 1, alpha = rep(1,nCategories))". Can use variable nCategories to replicate a value or provide a numeric atomic vector as input. Will return an error if size of resulting parameter vector is not correct.


[Package blatent version 0.1.2 Index]