# Perform a sample size analysis.
results <- powerly(
range_lower = 300,
range_upper = 1000,
samples = 30,
replications = 30,
measure = "sen",
statistic = "power",
measure_value = .6,
statistic_value = .8,
model = "ggm",
nodes = 10,
density = .4,
cores = 2,
verbose = TRUE
)
# Validate the recommendation obtained during the analysis.
validation <- validate(results, cores = 2)
# Plot the validation results.
plot(validation)
# To see a summary of the validation procedure, we can use the `summary` S3 method.
summary(validation)
Run the code above in your browser using DataLab