Re: [R] t-statistic for independent samples

2013-04-17 Thread Jay Kerns
Dear David, On Wed, Apr 17, 2013 at 6:24 PM, David Arnold wrote: > Hi, [snip] > > D. Before posting to StackExchange, check out the Wikipedia entry for "Behrens-Fisher problem". Cheers, Jay -- G. Jay Kerns, Ph.D. Youngstown State University http://peo

Re: [R] R report generator (for Word)?

2012-01-01 Thread G. Jay Kerns
quot;, such as TODO lists, agendas, capturing-archiving, calendar integration, time tracking,...  These could possibly address some of the other issues you mentioned. Good luck, and Happy New Year.Jay ********* G. Jay Kerns, Ph.D. Mathematics and Statistics Youngstown Stat

Re: [R] Rcmdr Plugin error

2011-06-17 Thread G. Jay Kerns
tell whether that problem has anything to do with yours, but anyway, I hope this helps. Jay *** G. Jay Kerns, Ph.D. Youngstown State University http://people.ysu.edu/~gkerns/ __ R-help@r-project.org mai

Re: [R] How to calculate KMO?

2011-04-12 Thread G. Jay Kerns
ix means and how to set it up. If you are having trouble setting up a data matrix in general then I recommend the R documentation which you can find under the Help menu. I just double-checked and both the function and example still work like a charm, almost 4 years later.

Re: [R] A question to get all possible combinations

2010-12-22 Thread G. Jay Kerns
at urnsamples by default is replace = FALSE, ordered = FALSE, which is how I got away with the short command above. __ G. Jay Kerns, Ph.D. Youngstown State University http://people.ysu.edu/~gkerns/ __ R-help@r-project.org mailing

Re: [R] How to generate multivariate uniform distribution random

2010-11-06 Thread G. Jay Kerns
On Sat, Nov 6, 2010 at 8:22 PM, michael wrote: > Jay, > >   Yes I'm looking for unif(0,1) and your method works just fine. I > suppose your method should work for dimensions greater than 2, am I right? > > Michael > Yes, but it gets that much more tricky to specify the covariance matrix. Two

Re: [R] How to generate multivariate uniform distribution random

2010-11-06 Thread G. Jay Kerns
) You could also use copulas, but those depend on contributed packages (and you can read more about them on the CRAN Task View for probability distributions). Hope this helps, Jay __ G. Jay Kerns, Ph.D. Youngstown State University http://people.ysu.edu/~gkerns/

Re: [R] Is there a regression surface demo?

2010-10-11 Thread G. Jay Kerns
Dear Josh, On Mon, Oct 11, 2010 at 3:15 PM, Joshua Wiley wrote: > Hi All, > > Does anyone know of a function to plot a regression surface for two > predictors?  RSiteSearch()s and findFn()s have not turned up what I > was looking for.  I was thinking something along the lines of: > http://mallit.

Re: [R] same random numbers in different sessions

2010-10-09 Thread G. Jay Kerns
Dear Liviu, On Sat, Oct 9, 2010 at 5:14 PM, Liviu Andronic wrote: > Dear all > I'm using Xubuntu Lucid and I keep getting the same random numbers > whenever I start a new session of R. For example, I keep getting >> sample(1:1000, 1) > [1] 87 > > or >> rnorm(1:10) >  [1] -1.3618103  0.4241701  1.

Re: [R] R-help

2010-10-05 Thread G. Jay Kerns
errors that keep coming up: >> Error in 1:sim : 'sim' is missing >> >> >> How do I correct this? >> >> >> >>       [[alternative HTML version deleted]] > > ______ > R-help@r-project.org

Re: [R] choose.dir() gone?

2010-09-08 Thread G. Jay Kerns
anks, Joh > [snip] Have a look at tk_choose.files in the tcltk package. library(tcltk) ?tk_choose.files Good luck, Jay ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown,

Re: [R] Introductory statistics and introduction to R

2010-07-28 Thread G. Jay Kerns
lly, it depends on what you mean by 'get through'.) > > Also, do you have other suggestions for texts, manuals, web sites, etc. that > would introduce statistics and R simultaneously? Have you seen this? http://rwiki.sciviews.org/doku.php?id=books:intrstat Good luck, Jay

[R] [R-pkgs] IPSUR-1.0 is on CRAN, plus update to RcmdrPlugin.IPSUR

2010-07-28 Thread G. Jay Kerns
on of the R-Forge Project Page. ******** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA http://people.ysu.edu/~gkerns/ ___ R-packages mailing l

Re: [R] Gamma parametrization

2010-03-19 Thread G. Jay Kerns
ave a 'scale' parameter at all. Just be careful, and you should be fine. And IMHO, given that the PDF of the density is shown it is reasonably clear as-is. Best, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematic

Re: [R] Update problem? Rcmdr disappears, won't re-open

2010-02-02 Thread G. Jay Kerns
Dear Brian, On Tue, Feb 2, 2010 at 4:33 PM, Liviu Andronic wrote: > On 2/2/10, briancady413 wrote: >>  I am trying unsuccessfully to open RcmdrPlugin.IPSUR from within Rcmdr, via >>  the pulldown tools menu. >>  It insists I restart Rcmdr, which I let happen, then Rcmdr doesn't restart, >>  and

Re: [R] Update problem? Rcmdr disappears, won't re-open

2010-02-02 Thread G. Jay Kerns
I will have to boot into Windows later this evening to investigate, but in the meantime you may want to post your sessionInfo(). I have run RcmdrPlugin.IPSUR on R-2.10.1, Windows XP, as recently as yesterday during class without any problems. Gotta go for now. Jay -- **

Re: [R] Starting with R and distributions graphics

2009-12-15 Thread G. Jay Kerns
"prob") # see section 8 ?rolldie ?addrv ?marginal Then turn off the computer, pick up a pencil, and solve the problems by hand. Wait a minute, maybe that should be step 1? Have fun, Jay *** G. Jay Kerns, Ph.D. Associate Professor D

Re: [R] Need help to forecasting the data of the time series .

2009-12-10 Thread G. Jay Kerns
; -- > Stephen Thanks for the brief response, Stephen; he has seen (most of) this before. Unbelievable. Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-

Re: [R] Combinations and joint probabilities

2009-12-04 Thread G. Jay Kerns
the joint pmf xtabs(probs ~ Var1 + Var2, data = Probspace) # sorted by probability Probspace[order(Probspace$probs), ] See the prob package for other utilities in this vein. You can make the labels better with c("7 – 7.50", "7.50 – 8.50", "8.50 – 10.00"), etc, in the firs

Re: [R] How to calculate KMO?

2009-09-30 Thread G. Jay Kerns
7L, 4L, 2L), m7 = c(14L, 5L, 2L, 11L, 20L, 3L, 13L, 17L, 14L, 20L, 10L, 15L, 6L, 10L, 16L, 3L, 8L, 7L, 4L, 2L), m8 = c(12L, 15L, 4L, 11L, 18L, 3L, 12L, 16L, 14L, 20L, 9L, 12L, 16L, 10L, 17L, 3L, 18L, 9L, 7L, 3L)), .Names = c("m1", "m2", "m3", "m4", "m5&

Re: [R] generating unordered combinations

2009-09-17 Thread G. Jay Kerns
solution: library(prob) urnsamples(0:2, size = 3, replace = TRUE, ordered = FALSE) Regards, Jay ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 C

Re: [R] faulty formatting of toLatex(sessionInfo())

2009-08-26 Thread G. Jay Kerns
t; Thank you > Liviu There was a closely related discussion last April: https://stat.ethz.ch/pipermail/r-devel/2009-April/053094.html and IIRC this was fixed for R version 2.10. Hope this helps, Jay -- ******* G. Jay Kerns, Ph.D. Associate Professor De

Re: [R] Logistic regression and R

2009-07-30 Thread G. Jay Kerns
sy, lemon squeezy. See page 78. Hope this helps, Jay ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310

Re: [R] setdiff bizarre (was: odd behavior out of setdiff)

2009-05-30 Thread G. Jay Kerns
Jason, (moved back to R-help) On Sat, May 30, 2009 at 3:30 PM, Jason Rupert wrote: > > Jay, > > > I really appreciate all your help help. > > I posted to Nabble an R file and input CSV files more accurately > demonstrating what I am seeing and the output I desire to achieve when I > difference

Re: [R] Odd Behavior Out of setdiff(...) - addition of duplicate entries is not identified

2009-05-29 Thread G. Jay Kerns
Jason, On Fri, May 29, 2009 at 5:58 PM, Jason Rupert wrote: > > Jay, > > > Thanks much for the reply.    I think you are right about the prob. > Unfortunately, I was not able to find the old emails I had discussing the use > of the more powerful setdiff that essentially inherits from the base c

Re: [R] Odd Behavior Out of setdiff(...) - addition of duplicate entries is not identified

2009-05-29 Thread G. Jay Kerns
every possible variant of questions (and answers) about this, and you haven't said _exactly_ what you are looking for. In the absence of an already posted solution, please specify exactly what you want and I'll wager an R Ninja could dispatch it in moments. Regards, Jay ***

Re: [R] R Books listing on R-Project

2009-05-27 Thread G. Jay Kerns
> > Jay: why not post your R-books how to on the wiki itself??? Because I thought that it would be better to write the instructions in R-wiki language that anybody could modify rather than post a PDF by me. Here is what I had in mind: http://wiki.r-project.org/rwiki/doku.php?id=links:books:howto

Re: [R] R Books listing on R-Project

2009-05-27 Thread G. Jay Kerns
to help... or, perhaps you (or somebody else) knows of an even better approach. Cheers Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall

Re: [R] can you tell what .Random.seed *was*?

2009-05-15 Thread G. Jay Kerns
nning of the .Rnw (but after the set.seed)... and did not distribute this information to the students... that would make it much harder, yes? Any ideas that are even better than this? Conceivably, some of my students will be searching these archives in the future; please feel free to res

Re: [R] can you tell what .Random.seed *was*?

2009-05-14 Thread G. Jay Kerns
Dear Duncan, On Thu, May 14, 2009 at 4:39 PM, Duncan Murdoch wrote: > On 5/14/2009 3:36 PM, G. Jay Kerns wrote: >> Question: >> 1) can you tell me what my original set.seed() value was?  (I wouldn't >> be able to figure it out, but maybe someone can) > > The onl

[R] can you tell what .Random.seed *was*?

2009-05-14 Thread G. Jay Kerns
ed. Cheers, Jay *********** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu.edu http://www

Re: [R] Kumaraswamy distribution

2009-05-12 Thread G. Jay Kerns
Dear Debbie, On Tue, May 12, 2009 at 5:37 AM, Debbie Zhang wrote: > > Dear R users, > > Does anyone know how to write function for Kumaraswamy distribution in R? > Since I cannot write dkumar, pkumar, etc. in R. > > > > Please help. > > > > Thanks a lot, > > Debbie > Check the CRAN Task View on

Re: [R] problem with rgl package

2009-05-05 Thread G. Jay Kerns
; checking for X... no > configure: error: X11 not found but required, configure aborted. > ERROR: configuration failed for package 'rgl' > ** Removing '/usr/local/lib/R/site-library/rgl' > I had the same problem a few days ago, and followed the recommendations of t

Re: [R] How to set up a function for "Central Limit Theorem"

2009-03-23 Thread G. Jay Kerns
m having trouble setting up the function to do this. ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department

Re: [R] setdiff for data.frames?

2009-03-12 Thread G. Jay Kerns
nzi.psych.upenn.edu/R/R-devel/archive/26683.html and as a consequence of that discussion: library(prob) setdiff(A,B) Best, Jay ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Y

Re: [R] Bivarite Weibull Distribution

2009-01-04 Thread G. Jay Kerns
ailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- *** G. Jay Kerns, Ph.D. Associate Professor Department of Mat

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread G. Jay Kerns
risk' of some sort, it would be good to increase the number of samples until the risk estimate stabilizes to a value with which you are comfortable. Best, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngs

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread G. Jay Kerns
th the problem. Good luck. Jay ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gke...@ysu

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread G. Jay Kerns
s approach to > a variable number of arguments to expand.grid. > > Hope this helps, > > baptiste > Here is another way: library(prob) urnsamples(1:3, size = 2, ordered = FALSE, replace = TRUE) You can convert to a matrix with as.matrix(), if desired. Regards, Jay -- ***

Re: [R] Create unique sets of 3 from a vector of IDs?

2008-12-02 Thread G. Jay Kerns
; "D" > [25,] "C" "A" "B" > [26,] "C" "A" "D" > [27,] "C" "A" "E" > [28,] "C" "B" "A" > [29,] "C" "B" "D" > [3

Re: [R] Create unique sets of 3 from a vector of IDs?

2008-12-02 Thread G. Jay Kerns
s[1:5], letters[1:5], letters[1:5]) > > > D > Have a look at urnsamples() in the prob package. ID <- LETTERS[1:5] urnsamples(ID, size = 3, replace = FALSE, ordered = FALSE) Best, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathem

Re: [R] how to test for the empty set

2008-11-24 Thread G. Jay Kerns
Dear Everybody, Thanks, length() is the answer. Best, Jay On Mon, Nov 24, 2008 at 1:15 PM, Ted Harding <[EMAIL PROTECTED]> wrote: > On 24-Nov-08 17:41:25, G. Jay Kerns wrote: >> Dear R-help, >> I first thought that the empty set (for a vector) would be NULL. >> >

Re: [R] how to test for the empty set

2008-11-24 Thread G. Jay Kerns
r B.C. > V5Z 1L3 > Canada > > > > > -Original Message- > From: [EMAIL PROTECTED] on behalf of G. Jay Kerns > Sent: Mon 11/24/2008 9:41 AM > To: r-help@r-project.org > Subject: [R] how to test for the empty set > > Dear R-help, > > I first thought that the

[R] how to test for the empty set

2008-11-24 Thread G. Jay Kerns
but am I missing something? and in particular, is there an elegant way to check in the case that the mode of the vector is not already known? Thanks in advance for any insight you may have. Best, Jay *********** G. Jay Kerns, Ph.D. Associate Pro

Re: [R] Bivariate normal

2008-10-01 Thread G. Jay Kerns
uld simply be P( X < x | Y=y ) * f(y), where f(y) is the marginal pdf of Y (a dnorm). Note that the above is assuming that y is a fixed constant; if not, then you may want to check out the Ryacas package. I hope that this helps, Jay *******

Re: [R] Plot qnorm

2008-09-11 Thread G. Jay Kerns
code echoed to you for the console that you can use for other problems. Best wishes, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 O

Re: [R] Writing Rcmdr Plugins

2008-08-20 Thread G. Jay Kerns
...[snipped] > > The /inst directory: in here you will need to put a file "menus.txt" > This should have been "the /inst/etc" directory, as you noted in your original post. Jay __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

Re: [R] Writing Rcmdr Plugins

2008-08-20 Thread G. Jay Kerns
ps the best advice is to download the source code RcmdrPlugin.x.tar.gz from CRAN (e.g. RcmdrPlugin.IPSUR), extract the archive, and take a look at how other people have done it. I hope that this helps, and good luck! :-) Jay *** G. Jay Ker

Re: [R] SLLN for loggamma fails for 2 order moments

2008-06-14 Thread G. Jay Kerns
ling list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, mini

Re: [R] Multiset Permutations

2008-04-06 Thread G. Jay Kerns
n <- dim(temp)[2] P <- array(unlist(permn(temp[, 1])), dim = c(k, factorial(k))) for (i in 2:n) { a <- temp[, i] perms <- array(unlist(permn(a)), dim = c(k, factorial(k))) P <- cbind(P, perms) } } return(P

Re: [R] (Small) problem with barchart

2008-02-03 Thread G. Jay Kerns
ters, a) ~ a, data = DATA) > > I would also encourage you to use 'origin = 0', or if you don't like > that, use dotplot() instead of barchart(). > > -Deepayan > > > > > __________ > R-help@r-project.org mailing list >

Re: [R] Looking for simpler solution to probabilistic question

2008-01-15 Thread G. Jay Kerns
5 6872 3919 > > National University of Singapore > > 6 Science Drive 2, Blk S16, Level 7 e-mail: [EMAIL PROTECTED] > > Singapore 117546http://www.stat.nus.edu.sg/~statba > > __ > R-help@r-project.or

[R] [R-pkgs] prob package: elementary probability on finite sample spaces

2008-01-10 Thread G. Jay Kerns
robability on a finite sample space. Regards, Jay ******* G. Jay Kerns, Ph.D. Assistant Professor / Statistics Coordinator Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -33

Re: [R] number of count of each unique row

2007-12-22 Thread G. Jay Kerns
ad the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- *** G. Jay Kerns, Ph.D. Assistant Professor / Statistics Coordinator Department of Mathematics &

Re: [R] analytical solution to Sum of binominal distributed random numbers?

2007-10-24 Thread G. Jay Kerns
cible code. > >>>> > >>> Charles C. Berry (858) 534-2098 > >>> Dept of > >> Family/Preventive Medicine > >>> E mailto:[EMAIL PROTECTED] UC San Diego > >>> http://famprevmed.ucsd.edu/f

Re: [R] power calculation for repeated measures ANOVA?

2007-09-16 Thread G. Jay Kerns
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- ******* G. Jay Kerns, Ph.D. Assistant Professor / Statistics Coordinator Department of M