Displaying 4 results from an estimated 4 matches for "poko2000".
2010 Nov 16
1
how to do linear regression when dimension is high
Hi I am a newbie in R.
I have data with dim of 20.
How to use lm if i want to do regression with the whole design matrix? My y
is the first column.
the left are xs.
Thanks a lot.
--
View this message in context: http://r.789695.n4.nabble.com/how-to-do-linear-regression-when-dimension-is-high-tp3045167p3045167.html
Sent from the R help mailing list archive at Nabble.com.
2011 Jan 23
3
how to store a number into a vector
Hi Everyone,
A quick question how to store a number like 12345 to a vector or array with
size(1,5), like 1, 2, 3, 4, 5
So I can compare if the last three digits of this number is the same with
some other numbers.
Thanks a lot
[[alternative HTML version deleted]]
2010 Dec 08
1
the output of function lars
Hi here is the code as example
lars is in package lars
> x<-matrix(rnorm(20*5,0,1),20,5)
> bs<-matrix(sample(seq(1:10),5),5,1)
> er<-rnorm(20,0,1)
> y<-x%*%bs+er
> lobj<-lars(x,y,type="lasso")
> names(lobj)
[1] "call" "type" "df" "lambda" "R2"
[6] "RSS"
2011 Apr 06
1
Error in match.names(clabs, names(xi))
Hi Guys,
I have this part of a program:
library(survival)
Gastric <- cbind.data.frame(Gp=c(rep(1,45),rep(0,45)), ### 2nd gp 0
time=c(1,63,105,129,182,216,250,262,301,301,342,354,356,358,
380,383, 383,388,394,408,460,489,499,523,524,535,562,569,675,676,
748,778,786,797,955,968,1000,1245,1271,1420,1551,1694,2363,2754,2950,