simlpsmc: Assessing the statistical performance of lpsmc.

View source: R/simlpsmc.R

simlpsmcR Documentation

Assessing the statistical performance of lpsmc.

Description

This routine can be used to assess the statistical performance of the lpsmc routine in a simulation setting. The scenario (1 or 2) determines the data generating process and the total number of replications can be fixed by the user.

Usage

simlpsmc(
  n = 300,
  K = 15,
  scenario = 1,
  S = 500,
  exactrep = FALSE,
  simnum = NULL,
  themetype = c("classic", "gray", "light", "dark")
)

Arguments

n

Sample size.

K

Number of B-spline basis functions.

scenario

Either 1 or 2.

S

Total number of replications.

exactrep

Exactly replicate results.

simnum

A seed for reproducibility.

themetype

The theme of the plot either "classic", "gray","light" or "dark".

Author(s)

Oswaldo Gressani oswaldo_gressani@hotmail.fr .

Examples

### Scenario 1,  n=300
sim1 <- simlpsmc(n = 300, scenario = 1, S = 10, exactrep = TRUE)
suppressWarnings(print(sim1$S0plot))
sim1$ASEplot


oswaldogressani/mixcurelps documentation built on Oct. 30, 2024, 10:45 p.m.