Displaying 4 results from an estimated 4 matches for "con4".
Did you mean:
con
2009 Jan 28
3
initial value in 'vmmin' is not finite
...e[,2],price[,2])> hil=cbind(constant,feature[,3],price[,3])> wt=cbind(feature[,4],price[,4])> > fr <- function(x) { + x1 = x[1]+ x2 = x[2]+ x3 = x[3]+ x4 = x[4]+ x5 = x[5]+ x6 = x[6]+ x7 = x[7]+ con1 = rbind(x[1],x[5],x[6])+ con2 = rbind(x[2],x[5],x[6])+ con3 = rbind(x[3],x[5],x[6])+ con4 = rbind(x[5],x[6])+ rho=exp(x[7])/(1+exp(x[7]))+ ey = exp((yop%*%con1)/rho)+ ed = exp((dan%*%con2)/rho)+ eh = exp((hil%*%con3)/rho)+ ew = exp((wt%*%con4)/rho)+ ev = ey+ed+eh+ew+ den=(ey+ed+eh+ew)+ iv = rho*log(den)+ pp=exp(x[4]+iv)/(1+exp(x[4]+iv))+ pr1 =pp* ey/den+ pr2 =pp* ed/den+ pr3 =pp* eh/den...
2009 Mar 02
1
initial gradient and vmmin not finite
...nt = rep(1,n)
yop=cbind(constant,feature[,1],price[,1])
dan=cbind(constant,feature[,2],price[,2])
hil=cbind(constant,feature[,3],price[,3])
wt=cbind(feature[,4],price[,4])
library(maxLik)
fr <- function(x) {
con1 = rbind(x[1],x[5],x[6])
con2 = rbind(x[2],x[5],x[6])
con3 = rbind(x[3],x[5],x[6])
con4 = rbind(x[5],x[6])
rho = exp(x[7])/(1+exp(x[7]))
ey = exp((yop%*%con1)/rho)
ed = exp((dan%*%con2)/rho)
eh = exp((hil%*%con3)/rho)
ew = exp((wt%*%con4)/rho)
ev = ey+ed+eh+ew
den=(ey+ed+eh+ew)
iv = rho*log(den)
pp=exp(x[4]+iv)/(1+exp(x[4]+iv))
pr1 =pp*(ey/den)
pr2 =pp*(ed/den)
pr3 =pp*(eh/den)
pr4 =p...
2010 Aug 13
1
decision tree finetune
...t;2) Info_G=0"
instead of "2) Info_G<0.5".
Thank you in advance!
And thanks for Eric who helped with my previous question about starting
"rpart".
Olga
> fit <- rpart(Retention ~
Info_G+AOPD+Mail+Xref_Umbr+Ins_Age+Discount+Xref_A + Con6 +
+ Con5 + Con4 +
+ Con3 + Con2 +
+ Con1 , data=Home,control=rpart.control(minsplit=5))
>
> fit
n= 48407
node), split, n, deviance, yval
* denotes terminal node
1) root 48407 4730.642 0.8902225
2) Info_G< 0.5 14280 1999.293 0.8316527 *
3) Info_G>=0.5 34127 2661.865 0.9147303 *
>
[...
2009 Jan 28
2
t.test in a loop
Hi All,
I've been having a little trouble with creating a loop that will run a a
series of t.tests for inspection,
Below is the code i've tried, and some checks i've looked at.
I've used the get(paste()) idea as i was told previously that the use of the
eval should try and be avoided.
I've run a single syntax to check that my systax is correct and works
without any problems