File: aaaCopulaClass.Rd

package info (click to toggle)
fcopulae 4052.86-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 644 kB
  • sloc: makefile: 14
file content (146 lines) | stat: -rw-r--r-- 3,763 bytes parent folder | download | duplicates (6)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
\name{CopulaClass}

\alias{CopulaClass}

\alias{fCOPULA}
\alias{fCOPULA-class}

\alias{show,fCOPULA-method}

\alias{pfrechetCopula}


\title{Bivariate Copula Class}


\description{
    
    A collection and description of functions to specify the 
    copula class and to investigate bivariate Frechet copulae. 
    \cr
    
    The class representation and methods are:

    \tabular{ll}{
    \code{fCOPULA} \tab representation for an S4 object of class "fCOPULA", \cr
    \code{show} \tab S4 print method. }
       
    Frechet Copulae:
    
    \tabular{ll}{
    \code{pfrechetCopula} \tab computes Frechet copula probability. }
    
}


\usage{
\S4method{show}{fCOPULA}(object)

pfrechetCopula(u = 0.5, v = u, type = c("m", "pi", "w"), 
    output = c("vector", "list"))
}


\arguments{
  
    \item{object}{
        [show] - \cr
        an S4 object of class \code{"fCOPULA"}.
        }
    \item{output}{
        [*frechetCopula] - \cr
        output - a character string specifying how the output should
        be formatted. By default a vector of the same length as \code{u} 
        and \code{v}. If specified as \code{"list"} then \code{u} and 
        \code{v} are expected to span a two-dimensional grid as outputted 
        by the function \code{grid2d} and the function returns a list with
        elements \code{$x}, \code{y}, and \code{z} which can be directly 
        used for example by 2D plotting functions.
        }
    \item{type}{
        [*frechetCopula] - \cr
        the type of the Frechet copula. A character
        string selected from: \code{"m"}, \code{"pi"}, or \code{"w"}.
        }
    \item{u, v}{
        two numeric values or vectors of the same length at which
        the copula will be computed. If \code{u} is a list then the
        the \code{$x} and \code{$y} elements will be used as \code{u} 
        and \code{v}. If \code{u} is a two column matrix then the 
        first column will be used as \code{u} and the the second 
        as \code{v}.
       }
    
}


\value{
    
    The print method \code{show} returns an S4 object of 
    class \code{"fCOPULA"}. The object contains the following slots:
    
    \item{@call}{
        the function call.  
        }
    \item{@copula}{
        the name of the copula.
        }
    \item{@param}{
        a list whose elements specify the model parameters of the
        copula.
        }
    \item{@title}{
        a character string with the name of the copula. This can be 
        overwritten specifying a user defined input argument.
        }
    \item{@description}{
        a character string with an optional user defined description. 
        By default just the current date will be returned.
        }
        
    The function \code{pfrechetCopula} returns a numeric vector of 
    probabilities. An attribute named \code{"control"} is added
    which returns the name of the Frechet copula.
    
}


\details{

    The function \code{pfrechetCopula} returns a numeric matrix of 
    probabilities computed at grid positions \code{u}|\code{v}. The
    arguments \code{u} and \code{v} are two single values or two 
    numeric vectors of the same length. If \code{v} is not specified
    then the same values are taken as for \code{u}. Alternatively,
    \code{u} may be given as a two column vector or as a list with
    two entries as vectors. The first column or entry is taken as
    \code{u} and the second as \code{v}. 

}


\author{

    Diethelm Wuertz for the Rmetrics \R-port.
    
}


\examples{
## fCOPULA -
   getClass("fCOPULA")
   
## pfrechet -
   # The Frechet Copula - m:
   pfrechetCopula(0.5)
   pfrechetCopula(0.25, 0.75)
   pfrechetCopula(runif(5))
   
## grid2d - 
   grid2d()
   pfrechetCopula(grid2d())
}


\keyword{models}