search for: seta1

Displaying 1 result from an estimated 1 matches for "seta1".

Did you mean: beta1
2012 Mar 21
0
How to create a function for a self created class.
...umeric type y.numeric<- sapply(y, as.numeric) #converting into numeric type transpose.x<- t(x.numeric) X<-transpose.x%*%x.numeric inv<- ginv(X, tol=sqrt(.Machine$double.eps)) Y<- inv%*%transpose.x beta<- Y%*%y.numeric return(beta) } T2<-computeBetas(data.setA1,str) #------------------------------------------------------------------------------------------------------------------------------------------------------------ But when I call the function it returns me - [1] "character" which is not the intended output. I am new to object oriented...