polypdmp-accessors: Accessor functions for Class polyPdmpModel

Description Usage Arguments Details Note Examples

Description

Get or set the slot values for an object of class polyPdmpModel. There are no methods for setting new values of the slots dynsprays, dynfunc, ratesprays and ratefunc. Their value can be changed by setting a new value to dynpolys, ratepolys or parms. Only these slots should be accessed by the user. Slot out will be set to NULL, if new values for the other slots are provided.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
dynpolys(obj)

dynpolys(obj) <- value

ratepolys(obj)

ratepolys(obj) <- value

ratesprays(obj)

ratesprays(obj) <- value

dynsprays(obj)

dynsprays(obj) <- value

## S4 method for signature 'polyPdmpModel'
dynpolys(obj)

## S4 method for signature 'polyPdmpModel'
ratepolys(obj)

## S4 method for signature 'polyPdmpModel'
ratesprays(obj)

## S4 method for signature 'polyPdmpModel'
dynsprays(obj)

## S4 replacement method for signature 'polyPdmpModel'
dynpolys(obj) <- value

## S4 replacement method for signature 'polyPdmpModel'
ratepolys(obj) <- value

## S4 replacement method for signature 'polyPdmpModel'
parms(obj) <- value

## S4 replacement method for signature 'polyPdmpModel'
dynfunc(obj) <- value

## S4 replacement method for signature 'polyPdmpModel'
ratefunc(obj) <- value

## S4 replacement method for signature 'polyPdmpModel'
ratesprays(obj) <- value

## S4 replacement method for signature 'polyPdmpModel'
dynsprays(obj) <- value

Arguments

obj

an object of class polyPdmpModel

value

the value that shall be set

Details

It is also possible to modify the slots directly, e.g. slot dynsprays of a model model with model@dynsprays, but this is not recommended! The slots have to fit together and there is no method warning you of possible misleading results.

Note

only works for one discrete variable

only works for one discrete variable

Examples

1
2
3
data("genePolyK")
parms(genePolyK)["b"] <- 3 
dynsprays(genePolyK) # different value than before

CharlotteJana/pdmppoly documentation built on Sept. 4, 2019, 4:40 p.m.