[R] IBrokers readBin is of argument NULL

2012-10-31 Thread loyolite270
hi I ran the below code, its throwing some error. > contract <- twsEquity("FAS") > reqMktData(tws, contract) Error in if (curMsg == .twsIncomingMSG$TICK_PRICE) { : argument is of length zero So i ran this following code to check the location of the problem > socketSelect(list(con), write=FAL

Re: [R] Optimize a function with Discrete inputs

2012-08-02 Thread loyolite270
oh sorry .. The detailed description of the problem is given below dataFrame is matrix of dim 100X100 with some values a is a vector of length 1 x is a vector of any length between 1 to 99 funcScore<-function(a,x){ sc<-0 sc1<-0 for(j in 1:(length(x))){ sc<-sc+abs(d

Re: [R] Optimize a function with Discrete inputs

2012-08-01 Thread loyolite270
Thanks for the reply, but the example i have given above is a sample function. I would be using a function with input vector of size more than 100 and the function will compute some score based on the 100 vector combinations. Since i don't want to do this computation sequentially for all these com

[R] Optimize a function with Discrete inputs

2012-08-01 Thread loyolite270
Hi I need to optimize the below function: a=function(x){ A=x[1] B=x[2] C=B-A return(C) } I need to optimize the above function such that x can be any combination of these number (0,3,5,8) of vector length 2 (i.e) x can be (3,0), (5,0), (8,0), (3,5), (3,8), (5,8), .. etc can s

Re: [R] Flexmix new data classification

2012-02-18 Thread loyolite270
Thank you very much for those suggestions, it really helped me a lot. I just got another problem, i want to run flexmix GLM binomial model with huge dataset (say 5 million rows), but the problem is i cant run flexmix with this dataset as a whole in R ( it will crash). So is it fair to run the fle

[R] Flexmix new data classification

2012-02-07 Thread loyolite270
Hi I built a flexmix GLM binomial model with 200 observations and the model gave me 2 clusters, so if the model is named as newModel then i get the cluster index for each row using newModel@clusters. Now is there any way to predict which cluster the new observation or 201 observation belongs to u

[R] Flexmix new data classification

2012-02-03 Thread loyolite270
hi I built a flexmix GLM binomial model with 200 observations and the model gave me 2 clusters, so if the model is named as newModel then i get the cluster index for each row using newModel@clusters. Now is there any way to predict which cluster the new observation or 201 observation belongs to u

Re: [R] Structural equation modeling in R(lavaan,sem)

2011-11-06 Thread loyolite270
I am new to both sem and lavaan package ... I dint exactly get the difference between sem from sem package and sem from lavaan package... , -- View this message in context: http://r.789695.n4.nabble.com/Structural-equation-modeling-in-R-lavaan-sem-tp3409642p3997527.html Sent from the R help ma