nacFrail.time | R Documentation |
This function provides measurements of user run times for the frailty variables involved in a nested Archimedean copula.
nacFrail.time(n, family, taus, digits = 3, verbose = FALSE)
n |
integer specifying the sample size to be used for the random
variates |
family |
the Archimedean family (class
|
taus |
|
digits |
number of digits for the output. |
verbose |
logical indicating if |
A k \times k
matrix of user run time measurements in milliseconds
(1000*system.time(.)[1]
) where k
is length(taus)
.
The first column contains the run times for generating the
V_0
s. For the submatrix that remains if the first column is
removed, row i
(for {\theta_0}_i
) contains the run times
for the V_{01}
s for a particular \theta_0
and all the
admissible \theta_1
s.
The class acopula
and our predefined "acopula"
family objects in acopula-families
. For some timings on a
standard notebook, see demo(timings)
(or the file
‘timings.R’ in the demo folder).
## takes about 7 seconds:% so we rather test a much smaller set in R CMD check
nacFrail.time(10000, "Gumbel", taus= c(0.05,(1:9)/10, 0.95))
system.time(
print( nacFrail.time(1000, "Gumbel", taus = c(0.5,1,6,9)/10) )
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.