Re: [R] Factor analysis

2010-11-13 Thread Brima
Thanks very much. However, I got an error message when I tried. What I did is that I created a correlation matrix named dat which is the only data I have and tried using the below > fa<- factanal(covmat = dat, factors=2, rotation="none", scores="none") Error in factanal(covmat = dat, factors = 2,

[R] Factor analysis

2010-11-12 Thread Brima
Hi all, This could be very basic. I want to do exploratory factor analysis but I don't have the data, rather I have the correlation matrix. How do I do this with just the correlation matrix? I know for principal components, I can just find the eigen values. Best regards -- View this message in

[R] R squared for lm prediction

2010-10-04 Thread Brima
Hi all, I have used a hold out sample to predict a model but now I want to compute an R squared value for the prediction. Any help is appreciated. Best regards -- View this message in context: http://r.789695.n4.nabble.com/R-squared-for-lm-prediction-tp2955328p2955328.html Sent from the R help

Re: [R] forecasting from a linear regression

2010-10-04 Thread Brima
Hi all, I have used the predict function to forecast values but now I would like to compute an R squared value for the prediction based on the original model. Any suggestions? -- View this message in context: http://r.789695.n4.nabble.com/forecasting-from-a-linear-regression-tp2717125p2955325.

[R] Standard error of forecast

2010-09-28 Thread Brima
Hi all, This is very basic but for a starter nothing is. I have a simple linear regression I am using to predict some values and I need the standard error of the prediction (forecast). Whats the easiest/bestway of getting this error? Best regards -- View this message in context: http://r.78969

[R] Conditional plot(Lattice)

2010-01-29 Thread Brima
5.1 9.5 39.0 2 2 128.3 10.1 50.5 3 3 121.3 9.4 55.6 4 4 134.4 11.6 45.0 5 5 106.5 10.3 49.6 6 6 111.5 9.5 44.3 7 7 132.7 11.2 47.4 8 8 126.9 9.0 60.0 Any help is appreciated. Brima -- View this message in context: http:/

[R] Conditional plot(Lattice)

2010-01-28 Thread Brima
5.1 9.5 39.0 2 2 128.3 10.1 50.5 3 3 121.3 9.4 55.6 4 4 134.4 11.6 45.0 5 5 106.5 10.3 49.6 6 6 111.5 9.5 44.3 7 7 132.7 11.2 47.4 8 8 126.9 9.0 60.0 Any help is appreciated. Brima -- View this message in cont