[R] Optim in R

2004-09-01 Thread Z P
Dear all, I recently use the optim function to find the maxima for some likelihood function. I have many parameters, more than 12. As the help file mention, the default method does not do well in univariate case. How about the different method in optim? I notice the nlm function uses newton

[R] Dirichlet-Multinomial

2004-08-14 Thread Z P
Dear all, Is there any package in R, which can do the Dirichlet-Multinomial model fit? It is a generalization of the beta-binomial model. I know Prof. Lindsay has a package, whcih can estimate the beta-binomial parameter well. Is there any counter part for Dirichlet-Multinomial? Thanks.

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-21 Thread Z P
it is for windows. R can not start, one information windows says fatal error: invalid homedrive. From: Prof Brian Ripley [EMAIL PROTECTED] To: David Scott [EMAIL PROTECTED] CC: Joann Williamson [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE Date:

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-21 Thread Z P
I find more interesting situation. My laptop (toshiba tecra9100) can run R 1.9.0 and the earlier version well when I connect to internet. The same wrong error appears when I disconnect the internet. One IBM laptop can not run R in any situation and one FUJITSE laptop never met any error

Re: [R] memory limit problem

2004-04-05 Thread Z P
happened since I run R in batchs under Linux. Does this happen probably due to the memory exhaust? (for some array(0,rep(2,10)), my codes work well). From: Prof Brian Ripley [EMAIL PROTECTED] To: Z P [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [R] memory limit problem Date: Mon, 5 Apr 2004

Re: [R] memory limit problem

2004-04-04 Thread Z P
Do you mean in Linux, there is no need to set memory limit? If needed, how to set it? Thanks. From: Roger D. Peng [EMAIL PROTECTED] To: Yi-Xiong Sean Zhou [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [R] memory limit problem Date: Sun, 04 Apr 2004 00:13:46 -0500 In general, this is

[R] about a series of arrays

2004-03-28 Thread Z P
Dear all, I now have a sequence of n-3:21, for each i, I define an array of dimension array((1/2)^i,c(rep(2,i))), I must update the (i+1)-th array with a loop according to the i-th array, How can I store all the previous arrays (the marginal parts of the (i+1)-th array will not equal to the

[R] GEE2

2004-03-17 Thread Z P
Dear all, Is there any package in R can do the GEE2? Thanks. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] confidence interval in local polynomial regression

2004-03-11 Thread Z P
Dear all, Is there any package or function can do the pointwise confidence interval and confidence band for the local polynomial regression? Maybe the local linear regression is enough. Thanks. Regards, Zhen __ [EMAIL PROTECTED] mailing list

[R] maxima

2004-03-09 Thread Z P
Dear all, suppose I have a bi-variate function f(x,y), I want to find the maxima. I define x and y vector, and get matrix z=f(x,y). how can I get which (x0,y0) makes z become the maxima? I can do two loops to get the x0 and y0, but I think there may exist a function to do this.

[R] 2D histogram

2004-02-07 Thread Z P
Dear all, Is there any function to draw a 2D histogram? I only can find some kernel estimation. I now only want to draw the 2D histogram. Thanks. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] estimating mode

2004-01-30 Thread Z P
Dear all, I am considering a problem related to density regression. After we got the estimation of probability density function f(x), how can we estimate the mode of that population? Does the sm package support mode estimation? If not, is there any other function in R can estimate the mode

Re: [R] numerical derivative

2004-01-08 Thread Z P
Dear all, I now want to get the numerical derivative of some multivariate function y=f(x_1,...,x_k) at some specific point x_0=(x_10,...,x_k0). I know deriv() funtion can give the numerical derivative when f is an known fuction. Now the f is an unknown fuction, but I can give many points

[R] numerical derivative

2004-01-06 Thread Z P
Dear all, I now want to get the numerical derivative of some multivariate function y=f(x_1,...,x_k) at some specific point x_0=(x_10,...,x_k0). I know deriv() funtion can give the numerical derivative when f is an known fuction. Now the f is an unknown fuction, but I can give many points

[R] array problem

2004-01-04 Thread Z P
Dear all, I define , for n=5 or any integer greater than 0. A-array((1/2)^n , c(rep(2,n))) then for any i not equal to j, and 1=i,j=n, B-apply(a,c(i,j),sum) now B is a 2 by 2 matrix, I also define another costant 2 by 2 matrix G, How can I change the values of each elements of array A,