search for: allmodels

Displaying 5 results from an estimated 5 matches for "allmodels".

2006 Aug 31
0
Ooops, small mistake fixed (pretty printing multiple models)
...(0.401)*** (0.3031)*** # # $\sigma_e$ 1.538 1.175 0.8873 # $R^2$ 0.2089 0.5385 0.7393 # ----------------------------------------------------------- mmp <- function(regressors, bottom.matter, models.names, allmodels) { numbers <- matrix(NA, nrow=(2*length(regressors))+length(bottom.matter), ncol=length(models.names)) colnames(numbers) <- models.names rownames(numbers) <- rep("t", nrow(numbers)) baserow <- 1 for (i in 1:length(regressors)) { if (regressor...
2006 Aug 31
0
Pretty-printing multiple regression models
...x{***} & (-10.1331)$^\mbox{***}\\[1mm] Residual std. dev. & 1.3567 & 1.2195 & 0.9505\\ $R^2$ & 0.2283 & 0.3765 & 0.6251\\ Adjusted $R^2$ & 0.2204 & 0.3701 & 0.6174\\ \hline mmp <- function(regressors, bottom.matter, models.names, allmodels) { numbers <- matrix(NA, nrow=(2*length(regressors))+length(bottom.matter), ncol=length(models.names)) colnames(numbers) <- models.names rownames(numbers) <- rep("t", nrow(numbers)) baserow <- 1 for (i in 1:length(regressors)) { if (regressor...
2009 Apr 08
1
Sweave problem, with multicolumn tables from R to LaTeX
...eDescription('Hmisc')$Version #version of Hmisc packageDescription('xtable')$Version #version of xtable #version and features of my PC and R R.version$platform R.version$version.string @ \section{The table ready to be exported} An R table as an example. <<>>= tab.coef.allmodels <- structure(c(246.8809, 153.6952, 43.6259, 1823.686, -4.0138, -53.8741, -13.9552, -699.7154, 0, -3.0084, -0.5188, -41.7249, 4.0898, 2.0342, 0.2798, 25.636, 235.5128, 160.0244, 30.0147, 1523.0723, 3.7601, -53.9238, -3.9789, -597.1446, 0, -3.2745, -0.0025, -28.7418, 4.4203, 2.1606, 0.0124, 17.925...
2010 Dec 22
5
regression
Hi dear all, suppose that s is a statistic code; i have a matrix (x) which has 7 columns (1=x1,2=x23=x3,4=x4,5=x5,6=x6 and7=y) and has 20 rows. i want to do linear reggression like reg<-lm(x[,7]~1+x[,1]+x[,2]+.......+x[,6]) but i want to do delete i th row for nrows times and create regression model like above and compute each models' "s" statistics and list them. but i could
2011 Oct 27
2
help with paste
Hello gurus, I have some variables, and i am creating combinations for analysis in the end i need these variables to be displayed like "LEPTIN+SAA+PTH". currently i am using loop to perform this. I would appreciate any pointers to do it without the loop. > mols=c("LEPTIN","SAA","PTH","sEGFR") > samples=mols[1:3] > samples [1]