search for: uhat

Displaying 2 results from an estimated 2 matches for "uhat".

Did you mean: that
2018 Mar 14
1
Documenting R package with Rd file
I have trouble documenting an R package. In my .Rd file (sixth line below), I have uhat<-m%*%y but when the package is built (successfully), the matrix multiplication part does not show up in the documentation. The line become (missing %*% y) uhat<-m === \examples{ x<-c(1,2,3,4,5) y<-c(1,1,2,2,4) x<-cbind(1,x) m<-mmat(x) uhat<-m%*%y dstat(uhat) } ?-- styen a...
2012 May 23
1
Error message from optim
...l(x)),1,1,1.5) beta<-th[1:ncol(x)] sig<-th[ncol(x)+1] phi<-th[ncol(x)+2] p<-th[ncol(x)+3] z.ast<-sig*z l.u<-function(u,y,z,x,beta,phi,p){   eta.u<-as.vector(x%*%beta+z%*%u)   f.y<-log(dtweedie(y,p,exp(eta.u),phi))   l.yu<-sum(f.y)+sum(dnorm(u,log=T))   return(-l.yu) } uhat<-optim(rep(0,ncol(z)),l.u,method="BFGS",hessian=T,             y=y,z=z.ast,x=x,beta=beta,phi=phi,p=p) [[alternative HTML version deleted]]