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. > library(PAFit) > > mean_array <- rep(0,10) > for (i in 1:10) { + testNet1 <- generate_BA(N = 500, m = 1, alpha = 0.75) + result <- PAFit_oneshot(testNet1) + mean_array[i] <- result$alpha + } > > mean(mean_array) [1] 0.5866499 > sd(mean_array)/sqrt(10) [1] 0.0617031 > > proc.time() user system elapsed 5.81 0.43 5.89