[R] Re...

2013-04-08 Thread Hey Sky
http://www.scenedenuit.com/xmwln/zwfpfz.nkeiq Hey Sky 4/8/2013 4:12:17 PM cbcdvutdvqnlpwsxx tmuadh [[alternative

Re: [R] Can ucminf be installed in 64 bit R and one more question?

2010-09-22 Thread Hey Sky
r PS, for the zero hessian matrix I met before, I think it might be the function curve is too flat at the initial value, since the second order derivation shows the curvature of the curve. any possible suggestions for it? Nan   - Original Message From: Ravi Varadhan To: Hey Sky

Re: [R] Can ucminf be installed in 64 bit R and one more question?

2010-09-22 Thread Hey Sky
thanks. Duncan. previously I try to install the 32 bit ucminf on a 64 bit R thus it cannot fit in. thanks for the link and I have downloaded  and installed it. it works perfect. Nan   - Original Message From: Duncan Murdoch To: Hey Sky Cc: R Sent: Tue, September 21, 2010 12

Re: [R] Can ucminf be installed in 64 bit R and one more question?

2010-09-21 Thread Hey Sky
there are many versions of 64 bit R.) Nan - Original Message From: Duncan Murdoch To: Hey Sky Cc: R Sent: Tue, September 21, 2010 6:51:57 AM Subject: Re: [R] Can ucminf be installed in 64 bit R and one more question? On 20/09/2010 8:36 PM, Hey Sky wrote: > Hey, R Users >

[R] Can ucminf be installed in 64 bit R and one more question?

2010-09-20 Thread Hey Sky
Hey, R Users my windows is 64 bit windows 7. I am trying to install the package ucminf into my 64 bit version R but cannot.  the package I downloaded is from http://cran.r-project.org/web/packages/ucminf/index.html and I installed it with the "install from local zip files", due to I did not co

Re: [R] one step just of cliff-- zero hessian matrix in optim, with reproducable code and data

2010-09-18 Thread Hey Sky
long time, thus the model should be ok. besides a more reasonable initial value, whatelse do you think it might be the reasons and what do you suggest? thanks for your time Nan   - Original Message From: Ravi Varadhan To: Hey Sky Cc: R Sent: Sat, September 18, 2010 4:03:41 PM

[R] one step just of cliff-- zero hessian matrix in optim, with reproducable code and data

2010-09-18 Thread Hey Sky
Hey, R Users a few days ago I have met a zero hessian with optim command. I reproduced it with simulated data. plz check the code and data at the bottom of the post. I also attachment them with this email. hope it can reduce some workload as copying and pasting. I have simunated data many time

[R] question on OPTIMX with installing and using

2010-09-17 Thread Hey Sky
Dear R users I have tried to install the optimx but met problems. I have gone to the website you suggested: https://r-forge.r-project.org/R/?group_id=395 and tried to install it with the following method: install.packages("optimx", repos="http://R-Forge.R-project.org";) I have received the

Re: [R] question on "optim"

2010-09-15 Thread Hey Sky
thanks. Ravi and Nash. I will read the new package and may use it after I am familiar with it. I may bother both of you when I have questions.thanks for that in advance. Nan from Montreal Hi Nan, You can take a look at the "optimx" package on CRAN. John Nash and I wrote this package t

Re: [R] optim with BFGS--what may lead to this, a strange thing happened

2010-09-15 Thread Hey Sky
from -- dnorm((lnw-regw)/w[5])/w[5] - Original Message From: Hey Sky To: R Sent: Wed, September 15, 2010 3:37:23 PM Subject: optim with BFGS--what may lead to this, a strange thing happened Dear R Users on a self-written function for calculating maximum likelihood

[R] optim with BFGS--what may lead to this, a strange thing happened

2010-09-15 Thread Hey Sky
Dear R Users on a self-written function for calculating maximum likelihood probability (plz check function code at the bottom of this message), one value, wden, suddenly jump to zero. detail info as following: w[11]=2.14 lnw=2.37 2.90 3.76 ... regw=1.96 1.77 1.82 w

Re: [R] question on "optim"

2010-09-07 Thread Hey Sky
, such as tips for setup gradient and others, or common mistakes? thanks Nan - Original Message From: Ben Bolker To: r-h...@stat.math.ethz.ch Sent: Tue, September 7, 2010 11:15:43 AM Subject: Re: [R] question on "optim" Hey Sky yahoo.com> writes: > I do

Re: [R] question on "optim"

2010-09-07 Thread Hey Sky
sorry. there is a type in the following code. there is no w[5]*acwrk[,i] in the regw equation. the right one should be as following:    regw[,i]<-w[1]+ w[2]*eta[m]+exp(w[3]+w[4]*eta[m])*actr[,i]   - Original Message From: Hey Sky To: R Sent: Tue, September 7, 2010 10:38:55

[R] question on "optim"

2010-09-07 Thread Hey Sky
Hey, R users I do not know how to describe my question. I am a new user for R and write the following code for a dynamic labor economics model and use OPTIM to get optimizations and parameter values. the following code does not work due to the equation:    wden[,i]<-dnorm((1-regw[,i])/w[5])/w[

[R] replace loops with matrix

2010-08-17 Thread Hey Sky
Hey, R users I am using numerical method for my research paper and the computation burden is very heavy. first I tried to do it with loops, example code as following, and it take hours to converge for only 200 obs. and my real data has 4000 obs. and the optimization command that I use is: o

[R] does R have a command the same with Stata's loop command: ` '

2010-08-03 Thread Hey Sky
hey, Rers in Stata therer is a loop command ` ' which could do the following: forvalue i=1/10 {  gen x`i'=expression } this will generate variable: x1,x2,x10. so, does R have a corresponding one to this? And one more very basic question: after I open a file and modify it, such as generat

Re: [R] how to do a IF ELSE in a matrix format

2010-08-03 Thread Hey Sky
question again. here is part of my original code for my research question. originally I used a loop with matrix form to do the work and it works (though looks ugly). I have tried the methods mentioned in the above posts and thought I did the same thing. but the new code does not work. the erro

Re: [R] how to do a IF ELSE in a matrix format

2010-08-03 Thread Hey Sky
thanks everyone. I will try them. Best Wishes Nan   - Original Message From: Steven McKinney To: Hey Sky ; "r-help@r-project.org" Sent: Mon, August 2, 2010 10:56:32 PM Subject: RE: [R] how to do a IF ELSE in a matrix format Here's one way: edu[edu[, 1]

[R] how to do a IF ELSE in a matrix format

2010-08-02 Thread Hey Sky
Hey, Rers I am new to R and this question may has been asked many times or a very old one. I have checked the archive but found nothing (maybe I used the wrong key words). any advise is appreciated the question is: I try to replace a col vector with some other values, see edu<-matrix(0,1000