save_output: Save partial results

Description Usage Arguments

View source: R/utils.R

Description

Write joint inclusion probability estimates on a file every by replications

Usage

1
2
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. 26, 2018, 5:20 p.m.