simul_data: Simulation of trajectories from two samples diverging by a...

View source: R/simulation.R

simul_dataR Documentation

Simulation of trajectories from two samples diverging by a delta function

Description

Simulate n_obs1 trajectories of length n_point in the first sample and n_obs2 trajectories of length n_point in the second sample.

Usage

simul_data(
  n_point,
  n_obs1,
  n_obs2,
  c_val = 0,
  delta_shape = "constant",
  distrib = "normal",
  max_iter = 10000
)

Arguments

n_point

integer value, number of points in the trajectory.

n_obs1

integer value, number of trajectories in the first sample.

n_obs2

integer value, number of trajectories in the second sample.

c_val

numeric value, level of divergence between the two samples.

delta_shape

character string, shape of the divergence between the two samples, among "constant", "linear", "quadratic".

distrib

character string, type of probability distribution used to simulate the data among "normal", "cauchy", "dexp", "student".

max_iter

integer, maximum number of iteration for the iterative simulation process.

Value

A list with the following elements

  • mat_sample1: numeric matrix of dimension ⁠n_point x n_obs1⁠ containing n_obs1 trajectories (in columns) of size n_point (in rows) corresponding to sample 1.

  • mat_sample2: numeric matrix of dimension ⁠n_point x n_obs2⁠ containing n_obs2 trajectories (in columns) of size n_point (in rows) corresponding to sample 2.

Author(s)

Zaineb Smida, Ghislain DURIF, Lionel Cucala

References

Zaineb Smida, Lionel Cucala, Ali Gannoun & Ghislain Durif (2022) A median test for functional data, Journal of Nonparametric Statistics, 34:2, 520-553, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/10485252.2022.2064997")}, hal-03658578

See Also

plot_simu(), simul_traj()

Examples

simu_data <- simul_data(
    n_point = 100, n_obs1 = 50, n_obs2 = 75, c_val = 10, 
    delta_shape = "constant", distrib = "normal"
)
str(simu_data)

funStatTest documentation built on May 29, 2024, 10:26 a.m.