Learn R Programming

mixexp (version 1.2.7)

Fillv: This function Creates interior points in an existing mixture design.

Description

This function creates interior points in a mixture design by averaging all possible pairs of design points. It duplicates SAS macro adxfill.

Usage

Fillv(nfac,des)

Arguments

nfac

an integer representing the number of mixture variables in the design

des

a data frame containing a mixture design created by one of the functions SLD, SCD or Xvert

Examples

Run this code
# NOT RUN {
# Example 1 fills interior of Simplex Lattice Design
des<-SLD(3,3)
DesignPoints(des)
des2<-Fillv(3,des)
DesignPoints(des2)

# Example 2 fills interior of Simplex Centroid Design
des<-SCD(4)
Fillv(4,des)

# Example 3 fills interior of Extreme vertices design
ev<-Xvert(3,uc=c(.1,.1,1.0),lc=c(0,0,0),ndm=1)
ev2<-Fillv(3,ev)

# }

Run the code above in your browser using DataLab