search for: shabsogh

Displaying 3 results from an estimated 3 matches for "shabsogh".

2013 Nov 01
2
computation of hessian matrix
below is a code to compute hessian matrix , which i need to generate 29 number of different matrices for example first element in x1 and x2 is use to generate let say matrix (M1) and second element in x1 and x2 give matrix (M2) upto  matrix (M29) corresponding to the total number of observations and b1 and b2 are constant.  can some one guide me or help to implement this please. I did not
2013 Nov 05
2
multi
[[1]]              [,1]      [,2] [1,]  0.003632559 0.2190629 [2,] -2.090772847 0.2190629 [[2]]             [,1]       [,2] [1,] 0.004278991 0.04337005 [2,] 0.190723602 0.04337005 [[3]]            [,1]        [,2] [1,] 0.01237827 -0.01544811 [2,] 0.06452200 -0.01544811 g<-c(1,2,3) function(g,hessianList){    for(i in 1:3){          ft1<-g[2]*hessianList[[2]]          ft2<-sum(ft1)   
2013 Nov 15
1
optimization
x1<-c(5.548,4.896,1.964,3.586,3.824,3.111,3.607,3.557,2.989,18.053,3.773,1.253,2.094,2.726,1.758,5.011,2.455,0.913,0.890,2.468,4.168,4.810,34.319,1.531,1.481,2.239,4.204,3.463,1.727) y<-c(2.590,3.770,1.270,1.445,3.290,0.930,1.600,1.250,3.450,1.096,1.745,1.060,0.890,2.755,1.515,4.770,2.220,0.590,0.530,1.910,4.010,1.745,1.965,2.555,0.770,0.720,1.730,2.860,0.760)