Re: [R] Variance-Covariance matrix from glm()

2006-08-07 Thread gynmeerut
Hello Achim Zeileis, gt; We are trying to find out how to get the variance-covariance matrix of the gt; MLEs out of the glm function. Can anyone help? Please try this : Suppose you have summary(glm(A ~ B,data=abc, family=Gamma)) then use summary(glm(A ~ B,data=abc,

[R] loop: results for all inputs

2006-04-13 Thread gynmeerut
Dear R users, I am using a loop that does matrix multiplication in a manner (A%*%B)%*%(A) Here A is a row of data frame D of order(200x4). B is a (4x4). No need to say D[j,] is 1x4 so I am using for(j in seq(0.1,20,by=0.1)){ Slt;- (D[j,]%*%B)%*%(D[j,]) print(S) } As a

[R] MLE

2006-01-15 Thread gynmeerut
Dear All, Can somebody tell me how to do Maximum Likelihood Estimation in R for Non-linear function? My function is non-linear and it has four parameters, only one explanatory variable. If possible Please tell me the source so that I can write my own code for above. Thanks, GS

[R] Dates

2006-01-07 Thread gynmeerut
Dear All, I have a dataset containing Date column. I need to breakdown this dataset into two parts one which has datapoints before a particular date and the otherone on or after a particular date. for example: 2005-12-15, 2008-12-14, 2012-10-01, 2009-11-15, 2018-10-10, 2014-08-31, 2016-03-27,

[R] removal of an element from a vector

2006-01-04 Thread gynmeerut
Dear All, I have some problem in R which I'm explaining using an example: x-(120,235,172,95,175,200,233,142) i want to remove the elements which are lesser than 100 and as a result i want two vectors y-(containing elements 100) z-(remaining elements) Moreover if I wish to use two different

[R] comparision and removal

2006-01-04 Thread gynmeerut
Dear All, I am using R and I am putting my problem in form of an example: X-c(128,34,153,987,345,45,3454,23,123) I want to remove the entries which are lesser than 100(? How to compare every element with 100 and how to create subsets ) and I need two vectors y and z s.t y-c(entries 100) z-

[R] loop

2005-12-29 Thread gynmeerut
Dear All, I have to use loop over an array so I am using following procedure count-1 repeat{ count-count + 1 c(g[count],1:i[count]) -qw if(count5)break } as a result qw is [1] 0.9643836 1.000 2.000 3.000 4.000 5.000 [7] 6.000 7.000 8.000