create_gadget_infile: Create GADGET input files

Description Usage Arguments Examples

View source: R/create_gadget_infile.R

Description

This utility function will save batch evaluated design criterion (DC) responses to seed the design_experiment function.

Usage

1
create_gadget_infile(lhs_design, response, filename)

Arguments

lhs_design

design matrix of DC evaluations

response

vector of DC responses

filename

save design to this file

Examples

1
2
3
4
5
6
7
#produces an Rdata file containing previous runs of the design criterion
set.seed(123)
lhs_design         <- lhs::maximinLHS(10,1)
criterion_response <- (lhs_design - 1)^2
file               <- paste(tempdir(),"/gadget_infile.Rdata", sep="")
create_gadget_infile(lhs_design,criterion_response, filename = file)
message(sprintf("gadget_infile.Rdata saved to directory %s",tempdir()))

GADGET documentation built on Jan. 25, 2020, 1:06 a.m.