| panelPomp_methods | R Documentation |
panelPomp objectsTools for manipulating panelPomp objects.
## S4 method for signature 'panelPomp'
coef(object, format = c("vector", "list"))
## S4 replacement method for signature 'panelPomp'
coef(object, ...) <- value
## S4 method for signature 'panelPomp'
length(x)
## S4 method for signature 'panelPomp'
names(x)
toParamList(value)
## S4 method for signature 'panelPomp'
print(x, ...)
## S4 method for signature 'panelPomp'
show(object)
## S4 method for signature 'panelPomp'
unit_objects(object)
## S4 method for signature 'panelPomp'
window(x, start, end)
## S4 method for signature 'panelPomp'
x[i]
## S4 method for signature 'panelPomp'
x[[i]]
## S4 method for signature 'panelPomp'
specific(object, ..., format = c("matrix", "vector"))
## S4 replacement method for signature 'panelPomp'
specific(object) <- value
## S4 method for signature 'panelPomp'
shared(object)
## S4 replacement method for signature 'panelPomp'
shared(object) <- value
object, x |
An object of class |
format |
the format (data type) of the return value. |
... |
.... |
value |
value to be assigned. |
start, end |
position in original |
i |
unit index (indices) or name (names). |
coef() returns a numeric vector.
length() returns an integer.
names() returns a character vector.
toParamList() returns a list with the model parameters in list form.
window() returns a panelPomp object with adjusted times.
`[` returns a panelPomp object.
`[[` returns a pomp object.
specific() returns unit-specific parameters as a numeric matrix or
vector
shared() returns shared parameters from a panelPomp object
Extracts coefficients of panelPomp objects.
Assign coefficients to panelPomp objects.
Count the number of units in panelPomp objects.
Get the unit names of panelPomp objects.
Converts panel coefficients from vector form to list form.
Subset panelPomp objects by changing start time and
end time.
[]Take a subset of units.
[[]]Select the pomp object for a single unit.
Extracts the specific coefficients.
Assigns the specific coefficients.
Extracts the shared coefficients.
Assigns the shared coefficients.
Carles \Breto, Aaron A. King, Edward L. Ionides, Jesse Wheeler
Other panelPomp methods:
as()
## access and manipulate model parameters and other features
prw <- panelRandomWalk()
coef(prw)
# replace coefficients
coef(prw) <- c(sigmaX=2,coef(prw)[-1])
coef(prw)
length(prw)
names(prw)
# convert vector-form parameters to list-form parameters
toParamList(coef(prw))
## summaries of objects
print(prw)
show(prw)
## access underlying pomp objects
unit_objects(prw)
## select windows of time
window(prw,start=2,end=4)
## subsetting panelPomp objects
prw[1] # panelPomp of 1 unit (first unit of prw)
prw[[2]] # pomp object corresponding to unit 2 of prw
# access and manipulate model parameters and other features
specific(prw)
# replace unit-specific coefficients
specific(prw) <- c("sigmaX[rw1]"=2)
specific(prw)
# access and manipulate model parameters and other features
shared(prw)
# replace unit-specific coefficients
shared(prw) <- c('sigmaY'=2)
shared(prw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.