Learn R Programming

pomp (version 0.39-3)

sliceDesign: Design matrices for likelihood slices.

Description

sliceDesign generates a data-frame representing points taken along one or more slices through a point in a multidimensional space.

Usage

sliceDesign(center, ...)
slice.design(center, ...)

Arguments

center
center is a named numeric vectors specifying the point through which the slice(s) is (are) to be taken.
...
Additional numeric vector arguments specify the slices.

Value

  • sliceDesign returns a data frame with one row per point along a slice. The column slice is a factor that tells which slice each point belongs to. The equivalent form (slice.design) is now deprecated.

See Also

profile.design

Examples

Run this code
## A single 11-point slice through the point c(A=3,B=8,C=0) along the B direction.
x <- sliceDesign(center=c(A=3,B=8,C=0),B=seq(0,10,by=1))
dim(x)
plot(x)
## Two slices through the same point along the A and C directions.
x <- sliceDesign(c(A=3,B=8,C=0),A=seq(0,5,by=1),C=seq(0,5,length=11))
dim(x)
plot(x)

Run the code above in your browser using DataLab