simlpsmc | R Documentation |
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.
simlpsmc(
n = 300,
K = 15,
scenario = 1,
S = 500,
exactrep = FALSE,
simnum = NULL,
themetype = c("classic", "gray", "light", "dark")
)
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". |
Oswaldo Gressani oswaldo_gressani@hotmail.fr .
### Scenario 1, n=300
sim1 <- simlpsmc(n = 300, scenario = 1, S = 10, exactrep = TRUE)
suppressWarnings(print(sim1$S0plot))
sim1$ASEplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.