Learn R Programming

GADGET (version 0.2.0)

create_gadget_infile: Create GADGET input files

Description

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

Usage

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

Run this code
# NOT RUN {
#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()))

# }

Run the code above in your browser using DataLab