- 1. Re: Multinomial Question (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Mon, 9 Jun 2003 16:41:56 -0400 (EDT)
- This is with respect to the theoretical part. Let's just look at the special case in your example: p=rep(.25,4), n=3, K=4, size=2 Let (X1,X1) be the two numbers randomly picked from (1,2,3,4) N=min(
- /archives/html/s-news/2003-06/msg00048.html (12,438 bytes)
- 2. Re: Multinomial question revisited (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Tue, 10 Jun 2003 08:59:10 -0400 (EDT)
- I am using the same example with p=rep(.25,4), n=3, K=4, size=2 Let (X1,X1) be the two numbers randomly picked from (1,2,3,4) N1=min(X1,X2) and N2=max(X1,X2) Then first row of A has a 1 in the locat
- /archives/html/s-news/2003-06/msg00052.html (12,271 bytes)
- 3. Re: observation number (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Tue, 17 Jun 2003 09:52:37 -0400 (EDT)
- I am assuming that Dn has been sorted. whichismin<-function(x){return(which(x==min(x)))} m<-length(table(Dn)) # number of days tapply(R1,Dn,whichismin)+cumsum(c(0,table(Dn)[-m])) This can accomodate
- /archives/html/s-news/2003-06/msg00113.html (8,617 bytes)
- 4. Re: splitting data (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Wed, 11 Dec 2002 04:52:05 -0500 (EST)
- How about the following self-made code: divide<-function(n,k){ a<-n%%k b<-n%/%k x<-rep(b,k) if (a==0) return(x) x[1:a]<-x[1:a]+1 chosen<-sample(1:k,a,replace=F) x[chosen]<-x[chosen]+1 return(x) } th
- /archives/html/s-news/2002-12/msg00087.html (9,046 bytes)
- 5. Re: pause (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Thu, 7 Nov 2002 11:20:26 -0500 (EST)
- If you are running Splus BATCH command in UNIX, you can use "kill -STOP jobid" to let it sleep a while, where jobid is the id number of your splus job. You can find the jobid by either "top" or "ps"
- /archives/html/s-news/2002-11/msg00063.html (7,363 bytes)
- 6. Two questions about all fortran from Splus (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Wed, 18 Sep 2002 03:11:49 -0400 (EDT)
- Dear S-users, I am working in unix, Splus 3.4. Question #1: I am calling a Fortran subroutine ABC from within Splus function TEMP. Assume y is a parameter of TEMP and x is an input parameter of ABC.
- /archives/html/s-news/2002-09/msg00123.html (7,784 bytes)
- 7. [Summary] Two questions about all fortran from Splus (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Wed, 18 Sep 2002 11:40:32 -0400 (EDT)
- Thanks for the help from Liaw, Andy and Rolf Turner. Both point to the same key: passing the dimension of y as part of the parameter to x in Fortran. jingshan
- /archives/html/s-news/2002-09/msg00124.html (8,795 bytes)
- 8. Re: generate random variate from double exponential (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Tue, 20 Aug 2002 08:46:47 -0400 (EDT)
- the difference of two identical independent exponential random variables is distributed as double exponential. -jingshan
- /archives/html/s-news/2002-08/msg00119.html (7,635 bytes)
- 9. What is the category of this object? (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Wed, 24 Jul 2002 22:52:27 -0400 (EDT)
- Dear S+ers, I am working with Splus 2000, Professional release 1. By the following code [1] F [1] F [1] F [1] F I cannot find out what kind of Splus object this junk2 is. Can someone out there help m
- /archives/html/s-news/2002-07/msg00177.html (7,482 bytes)
- 10. About multivariate hypothesis testing (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Wed, 1 May 2002 17:48:37 -0400 (EDT)
- I am working in Splus 2000 professional release 1, windows. I need your help with the multivariate hypothesis testing: One-sample or two-sample location tests, Testing of equal covariance matrix, et
- /archives/html/s-news/2002-05/msg00004.html (6,765 bytes)
- 11. msg00221.html (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Thu, 29 Nov 2001 13:50:19 -0500 (EST)
- Dear S-users: I am using Splus 2000, Professional edition, release 3. When I run the following steps: par(mfrow=c(1,2),fty="s") plot(1:5,1:5) plot(1:5,1:5) Splus only plot the second graph on the sec
- /archives/html/s-news/2001-11/msg00221.html (7,107 bytes)
- 12. How to comment multiple lines in Splus? (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Thu, 11 Oct 2001 14:50:45 -0400 (EDT)
- Dear Splus Users: I am wondering whether there is a convenient way to comment a couple of lines simultaneously, instead of commenting line by line. Any suggestion is appreciated. Jingshan Zhang
- /archives/html/s-news/2001-10/msg00082.html (7,839 bytes)
- 13. [Summary]How to comment multiple lines in Splus? (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Thu, 11 Oct 2001 15:35:59 -0400 (EDT)
- Thanks a lot to the helps from Jason Connor, Buttreg, Samuel, Chuck Taylor, Alzola, Carlos and Thompson, Trevor. They all gave the similar solution of commenting multiple lines in Splus by using the
- /archives/html/s-news/2001-10/msg00083.html (8,820 bytes)
- 14. How to create the help files for self-defined funcs? (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Tue, 1 May 2001 12:06:42 -0400 (EDT)
- Dear S-users: I am now interested in providing some self-defined Splus functions with some detailed descriptions, so that when I type help(funcname) after the Splus prompt, I can see the descriptions
- /archives/html/s-news/2001-05/msg00004.html (7,162 bytes)
- 15. What's wrong with this? (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Thu, 22 Mar 2001 14:32:09 -0500 (EST)
- Dear S-users: I am wondering what the wrong is here. When I typed a simple cbind() function, it gives the following error: Error in prmatrix(x, rowlab = dn[[1]], collab = cl..: rowlab is wrong length
- /archives/html/s-news/2001-03/msg00177.html (6,886 bytes)
- 16. [SUMMARY] What's wrong with this? (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Thu, 22 Mar 2001 18:49:09 -0500 (EST)
- Hi, Dear Splusers: Thanks a lot for Nick Ellis, Carlisle Thacker,Don MacQueen , Steve Wofsy, Rolf Turner's help. All of them have realized the nature of the problem: I must have masked something that
- /archives/html/s-news/2001-03/msg00180.html (8,871 bytes)
- 17. Is there a good way to carry out this faster? (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Wed, 7 Feb 2001 16:18:41 -0500 (EST)
- I have to compute the trimmed means of all columns in a 20x10000 matrix. I have tried the following: apply(X,2,mean,trim=.1) where X is the large matrix. It will take about 16 seconds. Can someone s
- /archives/html/s-news/2001-02/msg00076.html (7,293 bytes)
- 18. About density function in Splus (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Fri, 23 Feb 2001 16:14:02 -0500 (EST)
- Can some of you tell me what are the default choices of bandwith function in density function for both S+2000 and Splus 3.4 for UNIX? It seemed to me that they are different. Can you give me the sug
- /archives/html/s-news/2001-02/msg00199.html (6,512 bytes)
- 19. Re: Omitting rows in a dataframe... (score: 1)
- Author: jingshan zhang <jszhang@stat.rutgers.edu>
- Date: Mon, 22 Jan 2001 11:18:47 -0500 (EST)
- Try to use attach(Belgium) Belgium228229_Belgium[V5=="Q228"|V5=="Q229",] Good luck, jingshan
- /archives/html/s-news/2001-01/msg00141.html (9,857 bytes)
This search system is powered by
Namazu