fsimulate: Simulate data

View source: R/fsimulate.R

fsimulateR Documentation

Simulate data

Description

Function simulates data from the paper

Usage

fsimulate(
  n = 100,
  d = 7,
  K = 3,
  dgrid = 51,
  clear = 0.85,
  num_points = NULL,
  noise.mag = 0.1
)

Arguments

n

number of observations

d

number of dimensions

K

true 'low dimension'

dgrid

size of the grid

clear

fraction of observations to remove

num_points

number of points observed per curve

noise_mag

the magnitude of noise

Details

The function simulates data as described in the paper. Generates observations X1,X2 and a Y = X1 + X2 + noise

References

Lukasz Kidzinski and Trevor J. Hastie. Modeling longitudinal data using matrix completion. Under review (2021)

See Also

fregression


kidzik/fcomplete documentation built on Aug. 24, 2023, 5:44 a.m.