R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" 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.606025 > sd(mean_array)/sqrt(10) [1] 0.07658572 > > proc.time() user system elapsed 4.18 0.23 4.14