search for: minghua

Displaying 20 results from an estimated 24 matches for "minghua".

2004 Apr 29
5
Problems in plot
...s: Device X (ACTIVE)". The message in the console window is Error in plot.new() : Figure margins too large This program ran well under R1.6.X under Windows NT. It seems to me that it is not a specific x11() that generates that small graphics frame. Thank you for you help in advance. Minghua [[alternative HTML version deleted]]
2003 Sep 16
3
Question in Using sink function
Could anyone please explain to me why the following writes nothing into "all.Rout" file? If the "for" loop is removed, t.test output can be written into "all.out". Thanks in advance. Minghua Yao ...... zz <- file("all.Rout", open="wt") sink(zz) for(i in 1:n) { Cy3<-X[,2*i-1]; Cy5<-X[,2*i]; t.test(Cy3, Cy5) } sink() close(zz) ......
2003 Sep 26
3
Std. errors of intercept and slope
Dear all, I have the following output generated by linear regression. Since there is only one regression intercept and one slope for one set of data, what is the meaning of std. error for intercept and that of slope? Thanks in advance. Sincerely, Minghua > data(thuesen) > attach(thuesen) > lm(short.velocity~blood.glucose) Call: lm(formula = short.velocity ~ blood.glucose) Coefficients: (Intercept) blood.glucose 1.09781 0.02196 > summary(lm(short.velocity~blood.glucose)) Call: lm(formula = short.velocity ~ blood...
2003 Apr 10
3
A Question on lowess() function
Hi, all, I want to use lowess(x, y) where x and y are vectors of length of 4000+. In fact, x and y are log of some vectors. So, some of the elements are NaN. lowess() can not take away those elements then do the fitting. It will give the error message and do nothing. 1. Can anybody tell me how to get rid of those NaN's and use lowess()? 2. How to get the LOWESS fitting values for any
2003 Apr 07
3
New window for plot()
Hi, Can anybody tell me how to open new a new window for plot()? Thanks. Minghua
2004 Aug 25
5
How to Arrange character vector in alphabetic order
Hi, Is there any function that can arrange a character in alphabetic order? Thanks for answer -MY [[alternative HTML version deleted]]
2003 Jun 27
2
NA points in loess function
...ms to replace is not a multiple of replacement length If I replaced the NA's with a number, the function worked. What I want to do is to ignores those NA's. help(loess) doesn't say how to give value to na.action. It just says the default is to stop. Please help. Thank you in advance. -Minghua Yao
2004 May 20
2
Get Slot from a Class
...test" > TTT@p.value Error: Trying to get slot "p.value" from an object whose class ("htest") is not defined > TTT$p.value [1] 1.855282e-05 Why the message says the class of TTT is not defined while class(TTT) gets "htest"? I appreciate the explanations? -Minghua [[alternative HTML version deleted]]
2003 Apr 21
2
How to assigen column of matrix
Hi, A simple question. I want to assign values to columns (or rows) of a matrix. It seems that AA[,i]<-A; # A is a vector or array; doesn't work. How can I accomplish that? Thanks alot. -MY
2003 May 12
1
Problem in fetching from Oracle
...ompleted(rs)) { xxx <- fetch(rs, n = 5000) } + + + > xxx Error: Object "xxx" not found If I changed xxx to df and typed df, I got + + + > df function (x, df1, df2, log = FALSE) .Internal(df(x, df1, df2, log)) <environment: namespace:base> > Please help. Thanks. Minghua
2003 Aug 06
3
How to copy and paste a R plot onto Word (or Power Point)
All, Anybody can tell how to export a R plot onto Word (or Power Point)? Many thanks in advance. -MY
2004 Aug 20
3
How generate "A01", "A02", ..., "A99"?
Hi, Anyone can tell me how to generate "A01", "A02", ..., "A99"? paste("A", 1:99, sep="") generates "A1", "A2",..., "A99". This is not what I want. Thanks for the help. -MY [[alternative HTML version deleted]]
2004 Apr 28
2
Problem in Installing Package from CRAN...
...sc_0.10.2.zip' Content type `application/zip' length 594089 bytes opened URL downloaded 580Kb Error in unpackPkg(foundpkgs[okp, 2], pkgnames[okp], lib, installWithVers) : Unable to create temp directory C:/PROGRA~1/R/rw1090/library\file2869 > Thanks in advance for any help. Minghua [[alternative HTML version deleted]]
2003 Apr 04
2
sqlSave() Question
All, I am new in R. I found sqlSave() doesn't work for our Oracle9i. The following was the message: > sqlSave(channel, USArrests, rownames="state") Error in sqlColumns(channel, tablename) : USArrests : table not found on channel Check case parameter in odbcConnect > sqlQuery() works OK. Please help. Thanks. -MY
2003 May 20
2
Several Basic Questions
...of the accuracy of variables? e.g., in the following, > x<-1134567.1 > y<-0.19 > z<-x-y > z [1] 1134567 > I want variable to have an accuracy of 2 digits behind the decimal point instead of all the digits behind the point being cut off. Thank you in advance for any help. Minghua
2003 Oct 07
2
Sorting matrix or data frame
Dear all, Could anyone please tell me how to sort a matrix or a data frame against a column/row/component? Many thanks. -MY
2003 Apr 16
2
Local parameter calculation
Dear all, I am a newbie in R. I encounter a problem as follows. I have 2 vectors X and Y that have a equal length of several thousand. I see Y as the function of X. Both of them are random. X is not arrranged in any order. Of course, I do plot(X,Y). Now, I want to use a sliding narrow window to run over each X, then calculate the variances within that window. Anyone knows easy way in R to do
2004 Sep 03
0
Inconsistencies in subassignment with NA index. (PR#7210)
...s to replace is not a multiple of replacement length although only 4 values are replaced by AA[idx, 1] <- B. 2) the behaviour of the 3D case. ---------- Forwarded message ---------- Date: Fri, 3 Sep 2004 16:40:24 +0100 (BST) From: Prof Brian Ripley <ripley@stats.ox.ac.uk> To: "Yao, Minghua" <myao@ou.edu> Cc: R Help <r-help@stat.math.ethz.ch> Subject: Re: [R] Different Index behaviors of Array and Matrix [I will copy a version of this to R-bugs: please be careful when you reply to only copy to R-bugs a version with a PR number in the subject.] On Fri, 3 Sep 2004, Ya...
2004 Sep 04
1
Inconsistencies in subassignment (PR#7210)
...ent length > > although only 4 values are replaced by AA[idx, 1] <- B. > > 2) the behaviour of the 3D case. > > ---------- Forwarded message ---------- > Date: Fri, 3 Sep 2004 16:40:24 +0100 (BST) > From: Prof Brian Ripley <ripley@stats.ox.ac.uk> > To: "Yao, Minghua" <myao@ou.edu> > Cc: R Help <r-help@stat.math.ethz.ch> > Subject: Re: [R] Different Index behaviors of Array and Matrix > > [I will copy a version of this to R-bugs: please be careful when you reply > to only copy to R-bugs a version with a PR number in the subject.]...
2004 Apr 22
1
Question on outer(x, y, FUN,...)
Dear R gurus, When I used outer(x, y, FUN, ...), I got error message when there was matrix multiplications with x or y in FUN. FUN worked fine when x and y were applied to it in FUN(x, y, ...). Is this a bug for outer( )? -MY [[alternative HTML version deleted]]