generate simulated data from given model

simulate_data(ff, para, extra, x)

Arguments

x

numeric. used to generate y from ff(para, extra)(x))

Value

numeric matrix. cbind(x, y)

See also

Other simulate functions: simulate_partition_fit

Examples

simulate_data(f_protein, ideal.para11, extra11, seq(60,240,60))
#> x y #> [1,] 60 20.51094 #> [2,] 120 32.88565 #> [3,] 180 44.68205 #> [4,] 240 58.74219
simulate_data(f_AI2_out, ideal.para2, extra2, seq(0,270,30))
#> x y #> [1,] 0 1.000000e+00 #> [2,] 30 3.342989e-01 #> [3,] 60 3.859708e-02 #> [4,] 90 1.578633e-03 #> [5,] 120 2.316246e-05 #> [6,] 150 1.194889e-07 #> [7,] 180 1.972334e-10 #> [8,] 210 8.847081e-14 #> [9,] 240 8.541746e-18 #> [10,] 270 1.297193e-22