search for: sqare

Displaying 12 results from an estimated 12 matches for "sqare".

Did you mean: share
2005 Apr 15
0
code for index of canor analysis
...x.xscore<-cor(x,xscore) y.yscore<-cor(y,yscore) #canonical loadings y.xscore<-cor(y,xscore) x.yscore<-cor(x,yscore) #structure loadings/cross loadings prop.y<-diag(crossprod(y.yscore)/ny) prop.x<-diag(crossprod(x.xscore)/nx) #proportion of varoiance accounted for by its own cv cr.sqare<-as.vector(object$cor^2) #canonical R-sqare RD.yy<-cr.sqare*prop.y RD.xx<-cr.sqare*prop.x #proportion variance accounting for my the opposite Can. Var index<-list( "xscore"=xscore,"yscore"=yscore, "eigenvalue"=eigenvalue, "cr.sqare"=cr.sqare, &quo...
2000 Apr 04
2
Hierarchical Regression
Howdy! I'm a clinical psychologist desperately trying to get rid of SPSS. I just discovered R and like it quite a lot. The main reason why we're still using SPSS is the hierarchical regression where you enter bundles of variables into a linear model and get an R-sqare increase tested with an F-test. I already found add1 and drop1 but would rather need addn and dropn. Is there something like that? Or how else can I get what I want? --Ragnar -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.c...
2007 Jun 12
2
Data transformation for chi-square test.
...330 5 6 540 6 2 310 7 4 169 8 6 647 9 3 347 10 4 567 I would like to use this dataset with chi-sqare analysis to see if there is any realationship between family member and medical cost (more members in a family will rise their medical cost?) I have found the pacage called stats, but I think need to transform the dataset into a contingency table as I read from books. I am not sure if I correct...
2006 Jan 17
1
how can i locate the source code of a module quickly?
I have dowloaded the Source Code of R,and I want to know the process of chi-sqared test,but how can I found it? [[alternative HTML version deleted]]
2006 May 08
1
Panel Data Estimators (within, between, Random Effects estimator)
Dear R Users, Here is another probelm/question. I would like to run some panel regressions with R. Therefore I have combined several time periods of data for different individuals in my database. I have already run pooled OLS but I would need to calculate a Fixed Effects Estimator (within estimator). Unfortunately I couldn't find anything like that in the RSearch and I suppose that lme
2003 Jun 25
2
within group variance of the coeficients in LME
...ve a simple 2-level problem, where I want to check weather a certain covariate varies across level 2 units. Pinheiro Bates suggest just looking at the intervals or doing a rather conservative ANOVA test in their book. I have also consultet Raudenbush Bryk on the subject and they suggest using a Chi sqare statistics. It is defined as follows: SUM by j( (beta_hat_qj - y_hat_q0 - sum(y_hat_qs*w_sj))^2/V_hat_qqj) beta are the within 2-level coffecients - got them with the coef() y is a fixed effect or grand mean the sum is for accounting of the level 2 predictors, that I don't presently have, but...
2003 Apr 22
4
fisher exact vs. simulated chi-square
Dear All, I have a problem understanding the difference between the outcome of a fisher exact test and a chi-square test (with simulated p.value). For some sample data (see below), fisher reports p=.02337. The normal chi-square test complains about "approximation may be incorrect", because there is a column with cells with very small values. I therefore tried the chi-square with
2006 Mar 12
1
how to load files from a directory?
Hello. I have a lot of files that contain tables of data in a directory. I want to do the following in R but I don't know how: for i in 1 to the number of files { table[i]=read.table(file="file i") } The dimension of each table is different. All of these are tables of two dimensions. My first problem is to put all the file names in a table. Next, how I can load them using the
2002 Sep 03
1
t(xmat)
Hi, I have a matrix and time series "xmat". I have no problem executing any matrix functions except t(xmat) which gives the following error message. My question if "xmat" is a matrix why I can not execute this matrix function?? converting the time series and matrix into a data frame solves the problem >dim(xmat) [1] 98 7 > t(xmat) Error in "tsp<-"(*tmp*,
2010 Jan 29
3
extract R-squared and P-value from lm results
Hi, R Users I find a problem in extracting the R-squared and P-value from the lm results described below (in Italic), *Residual standard error: 2.25 on 17 degrees of freedom* *Multiple R-squared: 0.001069, Adjusted R-squared: -0.05769 * *F-statistic: 0.01819 on 1 and 17 DF, p-value: 0.8943 * * * Any suggestions will be appreciated. Thanks. Wenjun [[alternative HTML version deleted]]
2009 Apr 02
2
finding best fitting model
Hello, Is there a function in r to find the best fitting model for a set of data? I would like to know if my data are related exponentially,linearly or if there is a logarithmic correlation between my x and y values. To get a better imagination I've added the graphics at the end of this mail as an attachment. Thanks, Ben --
2012 Jul 30
6
Convert variable to STring
Dear all, I have a variable that I would like also to use it as a string. The reasons is that I want to collect results from different function to one table.. So when I use the  colnames(mymatrix) <-c(function1.function2,function3) the function1, function2, function3 to be "converted" to simple strings so as  colnames(mymatrix)