R version 4.4.0 alpha (2024-03-26 r86209 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > #testing CV-related functions > > ## code here that contains the tests > > > rm(list = ls()) > library(PAFit) > > > net_object <- generate_net(N = 20, m = 10, + s = 50,alpha = 0.5) > net_stat <- get_statistics(net_object) > result <- joint_estimate(net_object,net_stat, stop_cond = 10^-3) > > simulated_data <- generate_simulated_data_from_estimated_model(net_object,net_stat,result, M = 3) > > plot_contribution(simulated_data, result, which_plot = "PA") > > plot_contribution(simulated_data, result, which_plot = "fit") > > > proc.time() user system elapsed 4.70 0.35 5.07