save_output: Save partial results

View source: R/utils.R

save_outputR Documentation

Save partial results

Description

Write joint inclusion probability estimates on a file every by replications

Usage

save_output(
  iteration,
  design_name,
  counts,
  units,
  filename,
  path,
  status,
  as_data_frame
)

Arguments

iteration

integer indicating the iterations the simulation is at

design_name

string indicating the name of the sampling design to include in the filename

counts

matrix with number of occurrences of couple of units up to current replication

units

id of units for which output should be saved

filename

name of the file to write on disk

path

path to the directory where the file should be saved

status

1 if partial results are written before the maximum number of replications is reached, 0 otherwise

as_data_frame

logical, should output be in form of a data frame?


rhobis/jipApprox documentation built on Sept. 12, 2023, 7:01 a.m.