Displaying 20 results from an estimated 8000 matches similar to: "Skew-Normal CDF using psn"
2002 Sep 11
1
rational approximations to the normal cdf
In the R source, nmath/pnorm.c contains the
code for a rational function approximation
for the normal cdf. These constants are listed:
const double a[5] = {
2.2352520354606839287,
161.02823106855587881,
1067.6894854603709582,
18154.981253343561249,
0.065682337918207449113
};
The source file cites a paper by Cody (1969)
and states that these
2013 Aug 26
0
Bivariate skew normal cdf; very slow
Dear all,
I am calculating the bivariate skew normal cdf in "sn" package using "pmsn" function.
Although it is quite convenient ( thanks to prof. Azzalini) but it seems to be slow.
For example, it takes about 1 minute in calculation of 100k of such cdf values.
I am thinking to write a c++ code for this although not very familiar with it.
Any other idea?
Thanks in advance,
2005 Nov 16
1
normal cdf over an interval
Hi,
I'm trying to find a way to take evaluate the Normal CDF over an interval and return the result on the log scale. This works, but I think it isn't numerically stable:
log(pnorm(a, mean = x, sd = y) - pnorm(b, mean = x, sd = y))
Does anyone know of a single function that does the above? Or knows of a way to make it more stable? I'd really appreciate any suggestions!
2006 Jun 02
1
Multivariate skew-t cdf
Dear All,
I am using the pmst function from the sn package (version 0.4-0). After
inserting the example from the help page, I get non-trivial answers, so
everything is fine. However, when I try to extend it to higher dimension:
xi <- alpha <- x <- rep(0,27)
Omega <- diag(0,27)
p1 <- pmst(x, xi, Omega, alpha, df = 5)
I get the following result:
>p1
[1] 0
attr(,"error")
2002 Feb 19
2
cdf of the standard normal distribution
Dear Experts,
I need to calculate the cdf of the standard normal distribution, i.e.
H(x) = 1/sqrt(2*pi) integral(exp(-z^2/2) dz), where z is b/w -infi to
infi.
I know there should be a way to do it in R, but did not know to do it.
I'd appreciate any help you could offer.
Charlie Liu
Graduate student intern at EPA/ECO
2007 Jul 10
3
ECDF, distribution of Pareto, distribution of Normal
Hello all,
I would like to plot the emperical CDF, normal CDF and pareto CDF in the
same graph and I amusing the following codes. "z" is a vector and I just
need the part when z between 1.6 and 3.
plot(ecdf(z), do.points=FALSE, verticals=TRUE,
xlim=c(1.6,3),ylim=c(1-sum(z>1.6)/length(z), 1))
x <- seq(1.6, 3, 0.1)
lines(x,pgpd(x, 1.544,0.4373,-0.2398), col="red")
y
2012 Feb 02
1
Calculate the natural log of cdf between 2 intervals
Hello all,
I was wondering if there is an R function to do the following:
[*] log(pnorm(x)-pnorm(y)), where x>y.
I don't want all the area under the natural log of the normal pdf less than
x, I only want the area between y and x.
I am aware of the ability to specify log.p=TRUE, which gives me the log of
the probability that X<=x. This does not help me, because the following
code:
2009 Sep 23
1
Maximum Likelihood Est. regarding the degree of freedom of a multivariate skew-t copula
Hello,
I have a bigger problem in calculating the Maximum Likelihood Estimator regarding the degree of freedom of a multivariate skew-t copula.
First of all I would like to describe what this is all about, so that you can understand my problem:
I have 2 time series with more than 3000 entries each. I would like to calculate a multivariate skew-t Copula that fits this time series.
Notice:
2005 May 06
2
bivariate normal cdf
-- R Help List --
I am looking for a bivariate normal cdf routine in R. I have some fortran routines for this, which appear to be based on 15-point quadrature. Any guidance/suggestions on making these in loadable R-functions would be appreciated.
Thanks,
Dan
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Daniel A. Powers, Ph.D.
Department of Sociology
University of Texas at Austin
2006 Apr 26
1
cdf of weibull distribution
Hi,
I have a data set which is assumed to follow weibull distr'. How can I find of cdf for this data. For example, for normal data I used (package - lmomco)
>cdfnor(15,parnor(lmom.ub(c(df$V1))))
Also, lmomco package does not have functions for finding cdf for some of the distributions like lognormal. Is there any other package, which can handle these distributions?
2002 May 01
3
bivariate normal cdf and rho
Suppose F(x, y; rho) is the cdf of a bivariate normal distribution, with
standardized marginals and correlation parameter rho. For any fixed x and
y, I wonder if F(x, y; rho) is a monotone increasing function of rho,
i.e., there is a 1 to 1 map from rho to F(x, y; rho).
I explored it using the function pmvnorm in package mvtnorm with
different x and y. The plot suggests the statement may be true.
2005 Sep 01
5
Multivariate Skew Normal distribution
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Caio Lucidius
> Naberezny Azevedo
> Sent: 01 September 2005 12:09
> To: Help mailing list - R
> Subject: [R] Multivariate Skew Normal distribution
>
>
> Hi all,
>
> Could anyone tell me if there is any package (or function)
2007 Sep 12
0
Problem with integrate()
Hello!
I have a problem with integrate() in my function nctspa(). Integrate
produces an error message "evaluation of function gave a result of
wrong length". I don't know what that means. Could anyone suggest me
what is wrong with my function?
These are the examples of function calls that work OK:
nctspa(a=1:10,n=5)
nctspa(a=1:10, n=5, mu=2, theta=3, renorm=0)
This does not work:
2011 Feb 17
0
[BioC] Make.cdf.package error
Hi everybody,
I tried to analyze a custom Affymetrix 3'-biased Array. So I wanted to make
a cdf package. (My CDF file size is 1.12Go).
I tried several methods but the same error occured
Method 1
> #Set the working directory
> setwd("D:/Analyse R/Cel files")
> #library to create cdf env
> library("makecdfenv")
>#Create cdf environment
>pkgpath
2007 Sep 12
1
Integrate() error message, I am at a loss
Hello!
I have a problem with integrate() in my function nctspa(). Integrate
produces an error message "evaluation of function gave a result of
wrong length". I don't know what that means. Could anyone suggest me
what is wrong with my function?
These are the examples of function calls that work OK:
nctspa(a=1:10,n=5)
nctspa(a=1:10, n=5, mu=2, theta=3, renorm=0)
This does not work:
2006 Dec 04
0
How to calculate area between ECDF and CDF?
Hi all,
I'm working with data to which I'm fitting three-parameter weibull
distributions (shape, scale & shift). The data are of low sample sizes
(between 10 and 80 observations), so I'm reluctant to check my fits
using chi-square (also, I'd like to avoid bin choice issues). I'd use
the Kolmogorov-Smirnov test, but of course this is invalid when the
distribution
2013 Apr 21
1
Using copulas with user-defined marginal functions
I am trying to make a loglikelihood function using copulas. I am trying to
use mvdc to find the density function. When I run this I got the error that
the pdf and cdf of my function tobit doesn't exist. Can somebody guide me
where my mistake is?
dtobit <- function(beta,sigma, x, y) {ifelse(y>0, dnorm(y,x%*%beta,
sigma),(1-pnorm((x%*%beta)/sigma)))}
ptobit <- function(beta,sigma, x,
2005 Aug 31
1
Block-Diagonal Matrix and Multivariate Skew Normal
Dear R-users,
Does anybody know how to construct a block-diagonal matrix (with the blocks being different matrixs, concerning the dimension and the values) ?
I would like to know also if there is any package that generates values from a multivariate skew normal distribution.
Thanks all,
Caio
---------------------------------
[[alternative HTML version deleted]]
2012 Dec 08
0
Modelling a skew-normal distribution using glm/ mgcv
Hello,
Suppose my variable,S, (time for something to start) is a skew-normal
distribution [1]. Can glm and mgcv handle this type of distribution for the
dependent variable?
Regards
Saptarshi
[1] http://azzalini.stat.unipd.it/SN/
[[alternative HTML version deleted]]
2013 Jan 26
1
Attempting to confirm a program i wrote in C (normalize 2 datasets, transform into histogram, transform into CDF, perform KS test)
I have written a program in C that two xy datasets, aligns these 2 datasets
based on shared features, transforms them into equal sized histograms,
transforms the histograms into cumulative distribution functions (via GSL)
and finally performs a KS_test.
I am wanting to validate my program's results and figure'd i would use R but
i am kinda stuck at ithe histograms (I have 2 histogram