Re: [R] Is there a package for EFA with multiple groups?

2014-07-28 Thread Joshua Wiley
Hi Elizabeth, In confirmatory factor analysis with multiple groups, the reason one needs to estimate the models simultaneously is that, typically, one is interested in applying constraints (e.g., forcing all or some of the factor loadings to be equal across groups). In exploratory factor analysis

Re: [R] a knitr question

2014-07-30 Thread Joshua Wiley
On Thu, Jul 31, 2014 at 9:47 AM, Duncan Murdoch wrote: > On 30/07/2014, 2:20 PM, Yihui Xie wrote: > > As a reader, I often want to run the code by myself _while_ I'm > > reading a particular part of an article/report. I find it convenient > > to be able to copy the code as I'm reading it, instead

Re: [R] Logical operators and named arguments

2014-08-06 Thread Joshua Wiley
Hi Ryan, It does work, but the *apply family of functions always pass to the first argument, so you can specify e2 = , but not e1 =. For example: > sapply(1:3, `>`, e2 = 2) [1] FALSE FALSE TRUE >From ?sapply 'lapply' returns a list of the same length as 'X', each element of which is

Re: [R] Logical operators and named arguments

2014-08-08 Thread Joshua Wiley
On Sat, Aug 9, 2014 at 9:56 AM, Patrick Burns wrote: > On 07/08/2014 07:21, Joshua Wiley wrote: > >> Hi Ryan, >> >> It does work, but the *apply family of functions always pass to the first >> argument, so you can specify e2 = , but not e1 =. For example:

Re: [R] A basic statistics question

2014-08-15 Thread Joshua Wiley
On Wed, Aug 13, 2014 at 7:41 AM, Rolf Turner wrote: > On 13/08/14 07:57, Ron Michael wrote: > >> Hi, >> >> I would need to get a clarification on a quite fundamental statistics >> property, hope expeRts here would not mind if I post that here. >> >> I leant that variance-covariance matrix of the

Re: [R] Simulating from a Weibull distribution

2014-09-02 Thread Joshua Wiley
Hi Lucy, Try the gamlss.dist package, specifically the rWEI2() function. Cheers, Josh On Wed, Sep 3, 2014 at 11:52 AM, Lucy Leigh wrote: > Hi, > I wish to simulate some data from a Weibull distribution. The rweibull > function in R uses the parameterisation > > 'with shape parameter a and sc

Re: [R] ANOVA and permutation tests : beware of traps

2014-09-23 Thread Joshua Wiley
Hi Stephane, This is the well known result of limitted floating point precision (e.g., http://www.validlab.com/goldberg/addendum.html). Using a test of approximate rather than exact equality shows R yields the correct answer: nperm <- 1 Fperm <- replicate(n=nperm, anova(lm(sample(Y) ~ F, dat

Re: [R] evaluate NA to FALSE instead of NA?

2014-10-14 Thread Joshua Wiley
Hi, Perhaps still not as short as you want, but I normally use which(): p <- c(1:10/100, NA, NaN) p[which(p <= .05)] [1] 0.01 0.02 0.03 0.04 0.05 Cheers, Josh On Tue, Oct 14, 2014 at 8:51 PM, Rainer M Krug wrote: > Hi > > I want to evaluate NA and NaN to FALSE (for indexing) so I would lik

Re: [R] Difference betweeen cor.test() and formula everyone says to use

2014-10-16 Thread Joshua Wiley
Hi Jeremy, I don't know about references, but this around. See for example: http://afni.nimh.nih.gov/sscc/gangc/tr.html the relevant line in cor.test is: STATISTIC <- c(t = sqrt(df) * r/sqrt(1 - r^2)) You can convert *t*s to *r*s and vice versa. Best, Josh On Fri, Oct 17, 2014 at 10:32 AM

Re: [R] choosing of CPU's to run R

2009-08-27 Thread Joshua Wiley
ject.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ [[alternative HTML version deleted]] ___

Re: [R] How to wait for a user response in Rscript?

2009-09-06 Thread Joshua Wiley
gt; >> > > > > > > > > -- > > RIOS,ALFREDO ARTURO > > > > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://w

Re: [R] Problem in performing goodness of fit test in R.

2010-02-14 Thread Joshua Wiley
value = 0.2423 > > I am very new to R, so any help would be appreciated. > Faiz. > Best of luck to you! I have found the list to be very helpful and informative. Joshua -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/

Re: [R] replicate matrix

2010-02-20 Thread Joshua Wiley
R help mailing 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<http://www.r-project.org

Re: [R] question to make a vector without loop

2010-02-26 Thread Joshua Wiley
_ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible co

Re: [R] question to make a vector without loop

2010-02-26 Thread Joshua Wiley
ect.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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Jo

Re: [R] why a text editor?

2010-03-01 Thread Joshua Wiley
__ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contai

Re: [R] trouble getting multinimial logit model to work properly

2010-03-10 Thread Joshua Wiley
h, > model="mlogit", data=TestData) > > I get the error > Error in attr(tt, "depFactors")$depFactorVar : > $ operator is invalid for atomic vectors > > Which i dont know what it means. The data is a subset of my real data but > should reflect what im

[R] Return one value, print another

2010-03-12 Thread Joshua Wiley
n printout to be rounded to "digits".  I have looked through ?return ?cat ?print. Can anyone suggest where I can learn how to do this (help pages, books, etc.)? Thanks in advance, Josh -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/

Re: [R] Return one value, print another

2010-03-12 Thread Joshua Wiley
() just following the suggestion from the return help page, but I will look at named vectors also. So thank you for that idea too. Thanks again. Josh -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com

Re: [R] defining columns in a matrix

2010-03-12 Thread Joshua Wiley
g 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, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of California, Rive

Re: [R] Two questions, first about contingency tables, and second about table () and data.frame (), from a visually impaired user.

2010-03-13 Thread Joshua Wiley
suppose to make in statistics. > > Thank you all, and sorry for such basic questions. > faiz. > > > > >        [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting g

Re: [R] Making multiple columns to a single column

2010-03-13 Thread Joshua Wiley
lumn? > > Thank you so much. > > -Hyo > >        [[alternative HTML version deleted]] > > __ > 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/pos

Re: [R] Correlation coefficient of large data sets

2010-03-15 Thread Joshua Wiley
in.com/in/vincentdavis> > >        [[alternative HTML version deleted]] > > __ > 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] Correlation coefficient of large data sets

2010-03-15 Thread Joshua Wiley
I think what you have done should be fine. read.table() will return a data frame, which cor() can handle happily. For example: my.data <- read.table("file.csv", header = TRUE, row.names = 1, sep=",", strip.white = TRUE) # assign your data to "my.data" cor(my.data) # calculate the correlation ma

Re: [R] Save variable in the file

2010-03-16 Thread Joshua Wiley
ad the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ __ R-he

Re: [R] Are loops handled differently in newer versions of R?

2010-03-16 Thread Joshua Wiley
ndows, I get NAs. > > -- > Michael D. Rennie, Ph.D. > Postdoctoral Fellow, Environmental and Life Sciences Program > Trent University > 2140 East Bank Drive, DNA Building (2nd Floor) > Peterborough, Ontario K9J 7B8 > Vox:705.755.2287 Fax:705.755.1559 > www.people.trentu.ca/m

Re: [R] read.csv, header=TRUE but skip the first line

2009-06-28 Thread Joshua Wiley
sv but skip the first > line. Possibly read the file, delete the first line and then send it > to read.csv, or some other way? > > Thanks in advance, > Mark > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do rea

Re: [R] a "simple" statistic question

2010-03-22 Thread Joshua Wiley
t;        [[alternative HTML version deleted]] > > __ > 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 >

Re: [R] a "simple" statistic question

2010-03-22 Thread Joshua Wiley
score <- pt(q=t.score, df=df, lower.tail=F) r.score <- t.score/sqrt((t.score^2)+df) value <- list(t.score, p.score, r.score, s2.pooled, df) names(value) <- c("t.contrast", "p.value", "r.contrast", "pooled.variance", "df") return(value)} #

Re: [R] Convert number to Date

2010-03-25 Thread Joshua Wiley
elp mailing 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 comme

Re: [R] Convert number to Date

2010-03-25 Thread Joshua Wiley
ing 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, minimal, self-contained, re

Re: [R] Convert number to Date

2010-03-25 Thread Joshua Wiley
rigin, but to my knowledge, it was never implemented, and there is no way to set a default (e.g., through options()). > sessionInfo() R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [5] LC_TIME=English_United States.1252 -- Joshua Wiley Senior in P

Re: [R] producing a QQ plot.

2010-03-27 Thread Joshua Wiley
m the R help mailing 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 com

Re: [R] producing a QQ plot.

2010-03-27 Thread Joshua Wiley
It is a bit of a side note really, but a convenient way to provide data (particularly when it is complex) is via dput(). Not only is this easier to read in, it preserves classes and other handy info. For instance, once I had played around to get "Cook" and "Islands" into one column (since there wa

Re: [R] Ranking correlation with R

2010-04-09 Thread Joshua Wiley
advance. > > Cheers, > -- > David Nemer > >        [[alternative HTML version deleted]] > > __ > 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-gui

Re: [R] Ranking correlation with R

2010-04-09 Thread Joshua Wiley
c data. To use it in this case, you would need to come up with rankings based on the position for each file name, and use those pairs of numbers with cor(). > Cheers, > -- > David Nemer -- Joshua Wiley Senior in Psychology University of Californ

Re: [R] Ranking correlation with R

2010-04-09 Thread Joshua Wiley
match(y,x) > ranks [1] 1 3 2 > cor(seq_along(x), ranks) [1] 0.5 It seems like as long as both sets of filenames contain exactly the same names, that should work. > > David Winsemius, MD > West Hartford, CT -- Joshua Wiley Senior in Psychology University of California, Ri

Re: [R] Ranking correlation with R

2010-04-09 Thread Joshua Wiley
which are in the same positions. > > -- > David Nemer -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

Re: [R] Generating model formulas for all k-way terms

2010-04-13 Thread Joshua Wiley
ate(mod, .~1) > models <- c(mod0, models) class(models) <- "glmlist" > models > } > > -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ [[alternative HTML version deleted]] _

Re: [R] managing data and removing lines

2010-04-16 Thread Joshua Wiley
.0 > 843.0 19.0 > 851.5 19.0 > 865.0 19.0 > 87 10.0 19.0 > 888.0 19.0 > 896.0 19.0 > 901.5 18.9 > 911.0 18.8 > 92 12.0 18.7 > 936.0 18.0 > 941.5 18.0 > 95 -1.0 18.0 > 968.0 18.0 > 97 50.

Re: [R] Where can I find library rmutil?

2010-04-17 Thread Joshua Wiley
de.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ [[alternative HTML version deleted]] _

Re: [R] Please help with min()

2010-04-17 Thread Joshua Wiley
sion deleted]] > > __ > 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<http://www.r-project.org/posting-guide.html>

Re: [R] rosavent problem

2010-04-17 Thread Joshua Wiley
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, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshu

Re: [R] loops and if statements

2010-04-18 Thread Joshua Wiley
ted as character. That may not be what you were intending.  You can get around this by creating a dataframe which can store different types of data. Best regards, Josh -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ ___

Re: [R] rosavent problem

2010-04-18 Thread Joshua Wiley
> try it with other data sets to see if I can reproduce my problems. > > Thanks, > Kevin > > > > On Sun, Apr 18, 2010 at 1:29 AM, Joshua Wiley wrote: > >> On Sat, Apr 17, 2010 at 8:04 PM, Kevin Turner wrote: >> > I have a frequency ta

Re: [R] sum() returns 0 not NA

2010-04-20 Thread Joshua Wiley
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, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of California, Riv

Re: [R] Using all variables in a linear model

2010-04-20 Thread Joshua Wiley
gt; > Walter > >        [[alternative HTML version deleted]] > > __ > 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, minimal, self-contained, r

Re: [R] median Q?

2010-04-21 Thread Joshua Wiley
gt; > __ > 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, minimal, self-contained, reproducible code. >

Re: [R] median Q?

2010-04-21 Thread Joshua Wiley
ot;while(Q2=" > > 2010/4/21 Vlatka Matkovic Puljic >> >> Thank you! >> >> 2010/4/21 Joshua Wiley >>> >>> Hello, >>> >>> summary() removes NAs by default.  You can get the same results using >>> >>> median

Re: [R] simple question

2010-04-22 Thread Joshua Wiley
> 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, minimal, self-contained, reproducible c

Re: [R] R crashing oddly

2010-04-23 Thread Joshua Wiley
"corSpatial")) >>> debug(getS3method("recalc","corStruct")) >>> debug(getS3method("Initialize","corSPT")) >>> debug(getS3method("coef<-","corSPT")) >>> debug(getS3method("coef","c

Re: [R] R crashing oddly

2010-04-23 Thread Joshua Wiley
opt = "nlminb")) Error in coef(object[[i]]) <- value[parMap[, i]] : caught access violation - continue with care > Then it occurred to me that RGui sometimes behaves slightly differently, and that you might be using the Gui so I ran it again there and it crashed, froze, and I had to m

Re: [R] Event History Data Recoding

2010-04-23 Thread Joshua Wiley
ne tell me if it is possible to do this recoding in R, or do I > have to do it by hand? > > Best, Thomas > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide

Re: [R] Event History Data Recoding

2010-04-23 Thread Joshua Wiley
if the reshape function can create new rows based on > the meeting variable. For the second act there are three meetings, i.e. > one meeting between discussion and agreement, and this should be entered > as a separate row. > > Best, Thomas > > On Fri, 2010-04-23 at 07:45 -0700

Re: [R] Fidelity of lattice graphics captured to jpeg or png

2010-04-29 Thread Joshua Wiley
//www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/ __ R-help@r-project.org mailing

[R] access http directories requiring authentication across platforms

2010-04-30 Thread Joshua Wiley
ccepted. I am sending some scripts to people who use Mac OS X, and (I am assuming) they will not have Internet Explorer installed. If it does not work, is there a more general way? At least for now, the website is not using encryption (regular http) and is using basic authentication controlled via

Re: [R] Calculation error

2010-05-02 Thread Joshua Wiley
; Oscar > Oscar A. Linares, MD > Translational Medicine Unit > La Plaisance Bay, Bolles Harbor > Monroe, Michigan 48161 > > Department of Medicine, > University of Toledo College of Medicine > Toledo, OH 43606-3390 > > Department of Internal Medicine, > The Detroit Medical Center (DMC) > Ha

Re: [R] How could I use a function saved in one file ?

2010-05-02 Thread Joshua Wiley
ete! > >        [[alternative HTML version deleted]] > > __ > 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 >

Re: [R] how to rewrite this for loops in matrix form without loop

2010-05-03 Thread Joshua Wiley
> 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, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology

Re: [R] Building from source under Windows 7

2009-11-04 Thread Joshua Wiley
g mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in

Re: [R] how to import data from excel to R

2009-12-17 Thread Joshua Wiley
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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
Hi Christophe, I am able to plot dashed circles on Windows. I'm afraid I do not have any suggestions for you. What happens when you try to plot it on Windows? Joshua Wiley Original message >Date: Mon, 27 Apr 2009 22:15:53 +0200 >From: r-help-boun...@r-project.org (o

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
I am running SP3. You said earlier that you were having trouble downloading 2.9.0, are you sure everything downloaded and installed properly? There have been some questions about transitioning to the new build going around. Joshua Wiley Original message >Date: Mon, 27 Apr 2009

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
I read that the lty=2 argument does not work on all graphics devices. You might double check that since it works on mac. Joshua Wiley Original message >Date: Mon, 27 Apr 2009 22:58:11 +0200 >From: Christophe Dutang >Subject: Re: [R] problem with symbol function &g

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
for the inconvenience. Joshua Wiley Original message >Date: Mon, 27 Apr 2009 17:12:18 -0400 >From: Duncan Murdoch >Subject: Re: [R] problem with symbol function >To: Joshua Wiley >Cc: r-help@r-project.org, Christophe Dutang > >On 27/04/2009 4:29 PM, Josh

Re: [R] running R on netbooks/minis?

2009-05-03 Thread Joshua Wiley
It probably depends on the mini, but it seems to work okay on my HP 1030nr with XP home (1.6 ghz intel atom, 1GB RAM, 16GB SSD). If I am working with larger datasets, I usually use my desktop. A lot of people like to use Linux on minis because it is often faster. If you are interested/concerned,

[R] Better way than an ifelse statement?

2010-01-13 Thread Joshua Wiley
ple$X2==4, 3, NA))) ## this seems sloppy to me > example X1 X2 X3 1 1.75308880 1 -3 2 -0.49273616 2 -1 3 -0.12446648 3 1 4 -0.06417217 4 3 Thanks for your help, Joshua -- Joshua Wiley Senior in Psychology University of California, Riverside http://

Re: [R] Better way than an ifelse statement?

2010-01-14 Thread Joshua Wiley
Hello, Thanks for all of your responses. I got a lot of great options that work. Thanks again! Joshua __ 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

Re: [R] Strange results from Windows 7

2010-01-17 Thread Joshua Wiley
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, minimal, self-contained, reproducible code. > -- Joshua Wiley Senior in Psychology University of C

Re: [R] PNG resolution

2010-01-27 Thread Joshua Wiley
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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Jos

Re: [R] question about transpose

2010-01-30 Thread Joshua Wiley
mental and Clinical Oncology and Hematology, University > of Genova, Genova, Italy > Guest Researcher, LMP, NCI, NIH, Bethesda MD > > Work: 301-451-8575 > Mobile: 301-204-5642 > Email: zoppo...@mail.nih.gov > __ > R-help@r-project.org mai

Re: [R] Help

2013-07-04 Thread Joshua Wiley
___ > 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, minimal, self-contained, reproducible code. -- Joshua Wil

Re: [R] bootstrapping respecting subject level information

2013-07-04 Thread Joshua Wiley
w I could make sure that the resampling procedure used by > "boot" respects the subject level information? > > Thanks a lot for your help/advice! > __ > R-help@r-project.org mailing list > https://stat.

Re: [R] Trouble with Slidify and Latex

2013-09-01 Thread Joshua Wiley
ng > Los Angeles, CA 90095 > > > [[alternative HTML version deleted]] > > __ > 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

Re: [R] Multiple regression (with interactions) by hand

2013-09-03 Thread Joshua Wiley
; > __ > 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, minimal, self-contained, reproducible code

Re: [R] optim evils

2013-09-04 Thread Joshua Wiley
__ > 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, minimal, self-contained, reproducible code. > -- Joshua Wi

Re: [R] Multiple regression (with interactions) by hand

2013-09-04 Thread Joshua Wiley
1) > # create the response vector by hand: > Y=airquality2$Ozone > # is the same as: > m1$model$Ozone > # Now solve for the parameter estimates: > > solve(crossprod(X)) %*% crossprod(X,Y) #gives the correct answer > > library(MASS) > ginv(t(X)%*%X)%*%t(X)%*%Y #gives

Re: [R] Read a Google Spreadsheet?

2013-09-04 Thread Joshua Wiley
; [2] LC_CTYPE=English_United States.1252 >>> [3] LC_MONETARY=English_United States.1252 >>> [4] LC_NUMERIC=C >>> [5] LC_TIME=English_United States.1252 >>> >>> attached base packages: >>> [1] stats graphics grDevices utils datasets methods ba

Re: [R] Problem with converting F to FALSE

2013-09-05 Thread Joshua Wiley
hanks in advance, > D V Kiran Kumar > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-

Re: [R] decimal places in R2HTML

2013-01-26 Thread Joshua Wiley
Realized I did not reply to this list. On Sat, Jan 26, 2013 at 7:54 PM, Joshua Wiley wrote: > Hi Erin, > > Most packages creating output for inclusion in pages, reports, books, > etc. do some rounding as R's default level of printed precision tends > to be overkill. R2

Re: [R] Migrating R packages from svn/R-Forge to git/Github

2013-02-10 Thread Joshua Wiley
sting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the po

Re: [R] improving/speeding up a very large, slow simulation

2013-02-11 Thread Joshua Wiley
%% done", round((i/combinations)*100)) > setWinProgressBar(pb, (i/combinations)*100, label=info) > } > > close(pb) > > # now, simply feed the values replicated the number of times we want to run > the simulation into the sequential.unpaired function, and assign the values >

Re: [R] foreach loop, stata equivalent

2013-02-18 Thread Joshua Wiley
here are probably more direct ways of doing the same thing and storing the >> resulting lm objects in a list, but you did not state what you intend to do >> with this enormous set of regressions... >> >> >> Regards >> >> > Thanks for any he

Re: [R] help with R CMD check --as-cran

2013-02-22 Thread Joshua Wiley
__ > 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, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student,

Re: [R] filling an array

2013-02-23 Thread Joshua Wiley
___ > 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, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Hea

Re: [R] identifying and drawing from T distribution

2013-03-15 Thread Joshua Wiley
elch (ivo.we...@gmail.com) > http://www.ivo-welch.info/ > > __ > 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, minimal, self-contained, reprod

Re: [R] About name of list elements

2013-03-25 Thread Joshua Wiley
lp > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://joshuawiley.com/ Senior Analyst - Elkhar

Re: [R] GAM model with interactions between continuous variables and factors

2013-03-25 Thread Joshua Wiley
0 0 0 ... > $ maternal_age_c: num -6.12 -3.12 -3.12 -1.12 -3.12 ... > $ birth_year_c : num -14.8 -14.8 -14.8 -14.8 -14.8 ... > > [[alternative HTML version deleted]] > > > __ > R-help@r-project.org mailing l

Re: [R] GAM model with interactions between continuous variables and factors

2013-03-25 Thread Joshua Wiley
> On Mon, Mar 25, 2013 at 6:18 PM, Joshua Wiley > wrote: >> >> Hi Antonio, >> >> If wealth is a factor variable, you should include the main effect in >> the model, as the smooths will be centered. >> >> Cheers, >> >> Josh >> >&

Re: [R] Full Documentation of R analysis

2013-04-04 Thread Joshua Wiley
/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles ht

Re: [R] Pls help to prevent my post from being indexed on google

2013-04-21 Thread Joshua Wiley
[DiffVec>0])} > diff<-cbind(FiveMinusOne,TenMinusOne)diff<-cbind(diff, > TenMinusFive)sn<-seq(1, length(lamdaseq))f2<-cbind(sn, diff)f2 > ##END > [[alternative HTML version deleted]] > > > __

Re: [R] double exponential regression R

2013-04-21 Thread Joshua Wiley
720229, Romania > office phone +4 0230 52 29 78, ext. 531 > mobile phone +4 0745 53 18 01 > +4 0766 71 76 58 > FAX:+4 0230 52 16 64 > silvic.usv.ro > > [[alternative HTML version deleted]] > > __

Re: [R] Polynomial Regression and NA coefficients in R

2013-04-27 Thread Joshua Wiley
uide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://joshuawiley.com/ Senior Analyst - Elkhart Group Ltd. http://elkhartgroup

Re: [R] Mixed Modeling in lme4

2013-04-30 Thread Joshua Wiley
_ > 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, minimal, self-contained,

Re: [R] Bootstrapped 1-sided confidence intervals

2013-05-07 Thread Joshua Wiley
PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://joshuawiley.com/ Senior Analyst - Elkhar

Re: [R] generate simple function with pre-defined constants

2013-06-06 Thread Joshua Wiley
On Thu, Jun 6, 2013 at 9:05 AM, William Dunlap wrote: > > I said the force was 'required' in the sense that without it > the function will fail to do what you want in some situations. With the Force on your side, functions always do what you want. > > Bill Dunlap > Spotfire, TIBCO Software > wdu

Re: [R] recode: how to avoid nested ifelse

2013-06-07 Thread Joshua Wiley
ope you are having a nice summer. > > pj > > -- > Paul E. Johnson > Professor, Political Science Assoc. Director > 1541 Lilac Lane, Room 504 Center for Research Methods > University of Kansas University of Kansas > http://pj.freefaculty.org

Re: [R] recode: how to avoid nested ifelse

2013-06-07 Thread Joshua Wiley
would do this to get the highest non-missing level: > > x <- pmax(3*cg, 2*hs, es, 0, na.rm=TRUE) > > rock chalk... > > -nfultz > > On Fri, Jun 07, 2013 at 06:24:50PM -0700, Joshua Wiley wrote: >> Hi Paul, >> >> Unless you have truly offended the

Re: [R] Unexpected behavior with weights in binomial glm()

2012-09-30 Thread Joshua Wiley
2 Total (i.e. Null); 1 Residual >>> Null Deviance: 13.86 >>> Residual Deviance: 5.407AIC: 9.407 >> >> Those two results look very similar and it is with a data situation that >> seems somewhat extreme. The concern is for the 1% numerical dif

Re: [R] Is there any R function for data normalization?

2012-10-02 Thread Joshua Wiley
; __ > 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, minimal, self-contained, reproducible code.

  1   2   3   4   5   6   7   8   9   10   >