Displaying 20 results from an estimated 141 matches for "copula".
2017 Aug 06
1
Help with optim function in R, please?
...multiple the weight by the logliklihood function and maximize it (M-step)
Then, I would like to take the new values of the parameter (from M-step) and plug it in the weight, to get a new value of the weight. Then, iterate till converges.
I tried the following code, but it does not work.
library(copula)
library(VineCopula)
## to generate the data
set.seed(123)
cp <- mixCopula(list(frankCopula(4),claytonCopula(2)))
cop <- rCopula(100,cp)
x <- pobs(cop) ## this is the data
## my function including optim function
myfunc <- function(data,copula=list(frankCopula(4,dim=2), claytonCopula(0....
2018 Apr 21
2
Error : 'start' contains NA values when fitting frank copula
Hello!
I am trying to fit a copula to some data in R and I get the error mentioned
above. This is the code for a reproducible example -
library(copula)
data = matrix(data=runif(600),nrow=200,ncol=3)
data[,2] = 2*data[,1]
data[,3] = 3*data[,1]
fr_cop = frankCopula(dim=3)
fit_fr_cop = fitCopula(fr_cop,pobs(data),method = "mpl&qu...
2007 Jul 16
3
R and Copula
hi,
first I want to say that I'm new here, and new with copula and R.
That is the reason why I'm writing, if somebody can help me.
I have to make an example of Copula.
On internet I've found this forum and that copula can calculate with R.
Can somebody help me with the thing how can I start and where can read about
these stuffs.
Thank to all who...
2018 Apr 21
0
Error : 'start' contains NA values when fitting frank copula
>>>>> Soumen Banerjee <soumen08 at gmail.com>
>>>>> on Sat, 21 Apr 2018 17:22:56 +0800 writes:
> Hello! I am trying to fit a copula to some data in R and
> I get the error mentioned above. This is the code for a
> reproducible example -
(not really reproducible: You did not set the random seed, so
the data is different every time;
OTOH, yes, the following always gives an error)
> library(copula)
Slight...
2006 May 12
3
Maximum likelihood estimate of bivariate vonmises-weibulldistribution
...ry
useful.
Cheers,
Aziz
-----Original Message-----
From: Dimitrios Rizopoulos [mailto:Dimitris.Rizopoulos at med.kuleuven.be]
Sent: May 12, 2006 4:35 PM
To: Chaouch, Aziz
Subject: RE: [R] Maximum likelihood estimate of bivariate
vonmises-weibulldistribution
look at the following code:
library(copula)
par(mfrow = c(2, 2))
x <- mvdc(normalCopula(sin(0.5 * pi /2)), c("norm", "norm"),
list(list(mean = 0, sd = 1), list(mean = 0, sd = 1))) contour(x, dmvdc,
xlim = c(-2.7, 2.7), ylim = c(-2.7, 2.7))
x <- mvdc(frankCopula(5.736276), c("norm", "norm"), lis...
2007 Jul 03
1
Empirical copula in R
Hi,
I would like to implement the empirical copula in R, does anyone know if it
is included in a package? I know it is not in the "Copula" package. This one
only includes a gof-test based on the empirical copula process.
Thanks for your help!
Gregor
--
View this message in context: http://www.nabble.com/Empirical-copula-in-R-tf4018319.h...
2007 Dec 12
2
Need good Reference Material and Reading about Gaussian Copulas
Can anyone advise me on some pratical papers or books
On Gaussian Copulas? Anything in the genre of Copulas Dummies
Would be a help.
As simpe, and approachable with minimal pedantic style.
Thanks,
Neil
--------------------------------------------------------
This information is being sent at the recipient's reques...{{dropped:16}}
2010 Mar 13
2
dmvnorm masked by emdbook
I am using curve3d in the emdbook package to graph a gaussian copula density
function generated via the copula package. Unfortunately, it appears that
emdbook masks dmvnorm from the package mvtnorm in a way that prohibits
copula from generating the gaussian copula. (Sounds very confusing!) For
example,
> library(copula)
> f<-function(x,y) dcopula(normalCopu...
2006 Apr 24
1
Modeling inverse relationship with copula
Dear r list,
I posted this on the S list last week since i'm using some of the
FinMetrics functions on copula. Knowing there is a copula package in R,
I figure this would be an appropriate forum to ask this question.
I want to model inverse relationship between two (non-normal,
non-symmetric) marginals with the gumbel copula, or with any copula.
Say, x is lognormal and y is norm. Since gumbel's delta...
2003 Nov 07
1
Copula functions in R?
Hello
I am writing to you regarding your interest in Copula/copulae and it?s
usage. I am currently studying Copula for my Master thesis and also
therefore have a large interest in it. Now I am looking for information
regarding copula as well as Copula and "R".
Code, information how to calculate or anything would be appreciated!
Since there see...
2011 Aug 06
2
Installing R-Packages from zipp file
Hi,
I'm a new user of R. I want to install 'copula' packages. I downloaded the
package and from the tab above in R-console i selected "install packages
from Zipped file". After this when I 'm writing in a command prompt
library(copula). It gives the error massage as
Error in library(copula) : 'copula' is not a valid insta...
2003 Nov 18
3
Copula calculation in R?
Hello
Anyone that now of any function in R that can calculate copulas?
Or if anyone have any code avaible I would be more than interested.
Thank you in advance
/Thomas
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
2010 Jun 10
0
error message fitting tcopula
Hi r-users,
I really need help in fitting the t-copula. I try to reproduce the example given by Jun Yan in “Enjoy the joy of copula” but I’m not sure how to correct the error based on the error message. I tried so many ways but still could not get it working.
loglik.marg <- function(b, x) sum(dgamma(x, shape = b[1], scale = b[2], log = TRUE))
...
2010 Jun 10
0
error message in fitting tcopula
Hi r-users,
I really need help in fitting the t-copula. I try to reproduce the
example given by Jun Yan in "Enjoy the joy of copula" but I'm not sure
how to correct the error based on the error message. I tried so many
ways but still could not get it working.
loglik.marg <- function(b, x) sum(dgamma(x, shape = b[1], scale = b[2],...
2011 Nov 25
1
Copula Fitting Using R
Hi,
Is anybody using Copula package for fitting copulas to own data?
I have two marginals Log Normal with (parameters 1.17 and 0.76) and Gamma (
2.7 and 1.05)
Which package I should use to fit Gumbel and Clayton Copulas?
Thanks,
fayyad
[[alternative HTML version deleted]]
2023 Nov 07
1
Concordance and Kendall's tau in copula
Dear
I estimate a sample selection model using the Clayton copula and Burr
and Gaussian marginal. I need to derive ther Kendall'sw tau from the
concordance coefficient by integration. I came across a way to do that
in R long time ago but cannot find it again. Can somewone tell me what
to read and what to use? Thank you.
Steven Yen
2008 Mar 29
0
how to fit a copula using real data?
Dear all,
I just came to R a few days ago. Now I have a problem that I have two
correlated variables and want to first fit a Gaussian copula, then sample
it to generate simulated variables. I have spent last two days looking at R
archive and copula help file but couldn't find what I need. If my
understanding is correct, all examples I saw work in this way: a man-made
copula -> simulated data -> fit the same copula. But what I...
2010 Jun 09
0
fitting t copula
Hi r-users,
I try to fit the t copula using the gamma marginals. But I got error message which I don't really understand.
Thank you for any help given.
myCop.t <- ellipCopula(family = "t", dim = 2, dispstr = "toep", param = 0.5, df = 8)
myCop.t
myMvd <- mvdc(copula = myCop.t, margins = c("gamma&quo...
2013 Jun 20
0
how to run copula-based quantile regression
Hi,
I want to run a quantile regression (Y=a+bX+e) using normal and t copula for
my dissertation.
I 've read the documentation of "copula" and "copBasic". However, I still
have difficulty to deal with my data.
Details are as following:
I've already loaded xls data into r using "XLConnect" package.
excel.file<-file.path("Q:/d...
2009 Apr 22
1
Copula package
Hi R-users,
I would like to use the copula package.? I? the package plus the mvtnorm and try to run the example given, but I got the following message:
install.packages(repos=NULL,pkgs="c:\\Tinn-R\\copula_0.8-3.zip")
norm.cop <- normalCopula(c(0.5, 0.6, 0.7), dim = 3, dispstr = "un")
t.cop <- tCopula(c(0.5, 0.3),...