Displaying 5 results from an estimated 5 matches for "zhiliang".
2007 May 29
2
search path question
...a function that can simply add
"C:\inFiles\" into R's search path, so that we I scan a file R will go to
all the search paths to find it. In matlab, path(path,"C:\inFiles") will do
this job, I'm just wondering if there is a similar function in R can do this
job.
Thanks,
zhiliang
[[alternative HTML version deleted]]
2007 Jan 26
2
enumerates all possible combinations
Hi all R users,
I want to create a matrix having n columns and 2^n rows, and all its entries
are only 0 or 1. In each row, column i is 0 means dimension i is chosen, 0
means not. The matrix will contains all the possible combination of those n
dimensions.
Here is an example, if n = 3, the matrix will look like:
0 0 0
0 0 1
0 1 0
1 0 0
0 1 1
1 0 1
1 1 1
I know I can use n "for" loops
2012 Jan 15
0
Regression for Rank Order Dependent Variable
...However, these are not four independent observations per person,
because if a respondent assigned the values to the first three objects,
then the rank of the fourth object is pre-determined. Does anyone know if there is a package that can fit a more appropriate model such as the Sin‐Ho Jung
and Zhiliang Ying (2003) "Rank‐based regression with repeated
measurements data", Biometrica, 90 (3), 732-740.
Any other ideas will be
well received. Thank you
Dr. Iasonas Lamprianou
Department of Social and Political Sciences
University of Cyprus
[[alternative HTML version deleted]]
2009 Jul 08
2
Two-way ANOVA gives different results using anova(lm()) than doing it by hand
Hey!
Could you please take a quick look at what I have done? Somehow I get wrong results using the anova(lm()) combination compared to doing a two way ANOVA by hand.
Running:
Data<-read.table("Data.txt");
g<-lm(ExM~S1*S2,Data);
anova(g);
Gives:
Analysis of Variance Table
Response: ExM
Df Sum Sq Mean Sq F value Pr(>F)
S1 1 4.3679
2009 Jul 09
2
How to Populate List
...ion (Haoda Fu)
111. subsetting a dataframe with a string logical expression
(Tracey Frescino)
112. Substituting numerical values using `apply' (Olivella)
113. Re: Tex fonts in R plots (Paul Murrell)
114. Re: Unix commands on R (Emmanuel Charpentier)
115. Re: Unix commands on R (Zhiliang Ma)
116. Re: Two-way ANOVA gives different results using anova(lm())
than doing it by hand (Zhiliang Ma)
117. How to deploy statistical models built in R in real-time?
(Guazzelli, Alex)
118. Getting value rather than formula in RGoogleDocs
(Farrel Buchinsky)
119. Re: Subst...