Thanks Michael , its works perfectly now.
--
View this message in context:
http://r.789695.n4.nabble.com/Error-Variable-is-missing-tp4515418p4526683.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
http
I believe you need to actually pass the values to your function:
pdf(x, mu, sigma, alpha, beta, rho) # Works
pdf(x) # Doesn't.
If not, please show us how you are calling pdf().
Michael
On Thu, Mar 29, 2012 at 9:25 AM, Guaramy wrote:
> Hi, I am writing a function to plot a pdf of a distribution
Hi, I am writing a function to plot a pdf of a distribution,
GNL.pdf.fn = function(x,mu,sigma,alpha,beta,rho)
{
y = x-rho*mu
cf.fn = function(s){
cplex = complex(1,0,1)
temp1 = alpha*beta*exp(-sigma*s^2/2)
temp2 = (alpha-cplex*
Hi, I am writing a function to plot a pdf of a distribution
x=seq(-4,4,length=200)
mu = 0
sigma = 0.01
alpha = 17.5
beta = 17.5
rho = 0.1
GNL.pdf.fn = function(x,mu,sigma,alpha,beta,rho)
{
y = x-rho*mu
cf.fn = function(s){
cplex = complex(1,0,1)
4 matches
Mail list logo