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] 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] 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] 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] 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] 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] 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] 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] 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] Box-cox transformation

2014-07-07 Thread Joshua Wiley
vi Varadhan wrote: > Dear Josh, > Thank you very much. I knew that the scaling had to be adjusted, but was not > sure on how to do this. > > Can you please show me how to do this scaling with `glm'? In other words, how > would I scale the deviance from glm? >

Re: [R] Box-cox transformation

2014-07-06 Thread Joshua Wiley
Hi Ravi, Deviance is the SS in this case, but you need a normalizing constant adjusted by the lambda to put them on the same scale. I modified your example below to simplify slightly and use the normalization (see the LL line). Cheers, Josh ## require(MASS)

Re: [R] data.frame(1)*1:4 = 1?

2014-04-03 Thread Joshua Wiley
t; 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, Health

Re: [R] predicted values

2014-02-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 > and provide commented, minimal, self-contained, reproducible code. > -- Joshua Wiley Ph.

[R] useR! 2014 cal for tutorials

2013-12-11 Thread Joshua Wiley
Misra, Katharine Mullen, Jeroen Ooms, Szilard Pafka, Tim Triche, 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

Re: [R] Setting contrasts

2013-12-02 Thread Joshua Wiley
ponse: Recall > # Sum Sq Df F value Pr(>F) > #(Intercept) 13479.2 1 1679.5361 < 2.2e-16 *** > #Age 240.2 1 29.9356 3.981e-07 *** > #Condition 1514.9 4 47.1911 < 2.2e-16 *** > #Age:Condition 190.3

Re: [R] How would i sum the number of NA's in multiple vectors

2013-10-17 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. Stud

Re: [R] trying to compile R in win 7 (with Rtools) ... tcl.h

2013-10-04 Thread Joshua Wiley
gt; >> bingo! :-) >> I got one pass to advanced! >> >> my TMP environment variable is: >> %SystemRoot%\TEMP >> >> >> thanks >> cleber >> >> >> Em 04/10/2013 22:02, Joshua Wiley escreveu: >> >>> Hi Cleber, >>&g

Re: [R] trying to compile R in win 7 (with Rtools)

2013-10-04 Thread Joshua Wiley
e or directory > make[3]: *** [mkR1] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [R] Error 1 > make: *** [all] Error 2 > > C:\Rsrc\R-3.0.2\src\gnuwin32> > > __** > R-help@r-project.org mailing l

Re: [R] (sans objet)

2013-10-03 Thread Joshua Wiley
r1-var6 should be coded NA for totmean and totsum. > > How I do that? > > Thank you! > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] Translating recoding syntax from SPSS to R

2013-09-22 Thread Joshua Wiley
o/r-help > PLEASE do read the posting 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/l

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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] SEM validation: Cross-Validation vs. Bootstrapping

2012-11-01 Thread Joshua Wiley
github. Cheers, Josh > > Thanks, > > Paul > > __ > 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 &g

Re: [R] change lm log(x) to glm poisson

2012-10-28 Thread Joshua Wiley
rect. > Thank you. > > Elaine > > [[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] Hausman test in R

2012-10-28 Thread Joshua Wiley
ge in context: > http://r.789695.n4.nabble.com/Hausman-test-in-R-tp4647716.html > Sent from 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

Re: [R] Poisson Regression: questions about tests of assumptions

2012-10-14 Thread Joshua Wiley
you recommend me what to do here? > > Thanks > 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

Re: [R] practical to loop over 2million rows?

2012-10-10 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

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.

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] Bonferroni correction for multiple correlation tests

2012-08-29 Thread Joshua Wiley
e 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 posting guide http://www.R-project.org/posting-guide.html > and provide c

Re: [R] define subset argument for function lm as variable?

2012-08-29 Thread Joshua Wiley
On Wed, Aug 29, 2012 at 3:56 AM, Milan Bouchet-Valat wrote: > Le mardi 21 août 2012 à 07:51 -0700, Joshua Wiley a écrit : >> Hi Rainer, >> >> You could try: >> >> subs <- expression(dead==FALSE & recTreat==FALSE) >> >> lme(formula, subset = eva

Re: [R] define subset argument for function lm as variable?

2012-08-21 Thread Joshua Wiley
>>>>> na.action = na.omit >>>>> ) >>>>> >>>>> Thanks, >>>>> >>>>> Rainer >>>>> >>>>> -- >>>>> Rainer M. Krug, PhD (Conservation Ecology,

Re: [R] define subset argument for function lm as variable?

2012-08-21 Thread Joshua Wiley
> > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D):+49 - (0)3 21 21 25 22 44 > > email: rai...@krugs.de > > Skype: RMkrug > > ______ > R-he

Re: [R] R utilizing 25% of CPU for Dual core i3 370M processor

2012-08-17 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. -- J

Re: [R] named character question

2012-08-12 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. -- Jo

Re: [R] Align columns in data frame write.table

2012-08-10 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 Ph.D. Student, Health Psychology Programmer Analyst II, Stati

Re: [R] Lavaan: Immediate non-positive definite matrix

2012-08-10 Thread Joshua Wiley
ML 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,

Re: [R] Simple question about formulae in R!?

2012-08-10 Thread Joshua Wiley
On Fri, Aug 10, 2012 at 9:16 AM, S Ellison wrote: >> > R in general tries hard to prohibit this behavior (i.e., including an >> > interaction but not the main effect). When removing a main effect and >> > leaving the interaction, the number of parameters is not reduced by >> > one (as would be ex

Re: [R] Simple question about formulae in R!?

2012-08-10 Thread Joshua Wiley
(vs)1:factor(am)1 28.37143 which you can see directly gets all the group expectations. Cheers, Josh > I have asked a question on how to get around this "limitation" on > stackoverflow with helpful answers by Ben Bolker and Joshua Wiley: > http://stackove

Re: [R] Questionnaire Analysis virtually without continuous Variables

2012-08-04 Thread Joshua Wiley
You may be able to get around zero cells using a an MCMC approach such as with MCMCglmm. On Aug 4, 2012, at 15:30, Sacha Viquerat wrote: > On 08/04/2012 07:57 PM, Joshua Wiley wrote: >> Hi Sacha, >> >> You're right that this is not an R related question really (wou

Re: [R] Questionnaire Analysis virtually without continuous Variables

2012-08-04 Thread Joshua Wiley
Hi Sacha, You're right that this is not an R related question really (would be better somewhere like crossvalidated.com). If basically everyone catches 0/1 birds, then I would consider dichotomizing: Y <- as.integer(caught >= 1) then check cross tabs to make sure there are no zero cells betwe

Re: [R] Partial Likelihood

2012-08-04 Thread Joshua Wiley
In addition to Bert's suggestion of r sig mixed models (which I second), I would encourage you to create a more detailed example and explanation of what you hope to accomplish. Sounds a bit like an auto regressive structure, but more details would be good. Cheers, Josh On Aug 4, 2012, at 9:34

Re: [R] How to link two R packages together

2012-08-02 Thread Joshua Wiley
or what? Should that be the host? I am not the host of the > server, does that matter? > Thank you so much for the help! > Yours, > Xuan > > -Original Message- > From: Bert Gunter [mailto:gunter.ber...@gene.com] > Sent: Thursday, August 02, 2012 9:42 AM > To: Joshua

Re: [R] How to link two R packages together

2012-08-02 Thread Joshua Wiley
to give up their time and effort to help > those with legitimate questions. You and others may consider this an > overreaction of course. > > Sorry for the rant, but it seems relevant to your close parsing of the thread. > > -- Cheers, > Bert > > On Wed, Aug 1, 2012 at 10:

Re: [R] How to link two R packages together

2012-08-01 Thread Joshua Wiley
h Nonclinical Biostatistics > > Internal Contact Info: > Phone: 467-7374 > Website: > http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm > > __

Re: [R] lm without intercept

2012-07-28 Thread Joshua Wiley
gt; > > -- > View this message in context: > http://r.789695.n4.nabble.com/lm-without-intercept-tp3312429p4638204.html > Sent from the R help mailing list archive at Nabble.com. > > __ >

Re: [R] selecting a subset of files to be processed

2012-07-28 Thread Joshua Wiley
sity of Houston - Downtown > mailto: erinm.hodg...@gmail.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 provid

Re: [R] zeroinfl problem: cannot get standard errors, hessian has NaN

2012-07-25 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. Stud

Re: [R] FIML using lavaan returns zeroes for coefficients

2012-07-23 Thread Joshua Wiley
ere, by default, only endogenous/dependent variables will be handled by >> missing="ml", not exogenous 'x' covariates. >> >> To fix it: simply add the fixed.x=FALSE argument, or revert to 0.4-12 to get >> the old behavior. >> >> Hope this helps, >

Re: [R] Last answer

2012-07-19 Thread Joshua Wiley
My apologies. I stand corrected. Thanks Michael. Josh On Thu, Jul 19, 2012 at 10:29 PM, R. Michael Weylandt wrote: > See: https://stat.ethz.ch/pipermail/r-help/2012-February/303110.html > > Michael > > On Fri, Jul 20, 2012 at 12:19 AM, Joshua Wiley wrote: >> Hi David,

Re: [R] Last answer

2012-07-19 Thread Joshua Wiley
e.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, reproducible

Re: [R] finding the values to minimize sum of functions

2012-07-19 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 Ph.D. Student, Health Psychology Pro

Re: [R] complexity of operations in R

2012-07-19 Thread Joshua Wiley
roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm > > __ > 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/postin

Re: [R] easy way to fit saturated model in sem package?

2012-07-13 Thread Joshua Wiley
of Sociology > McMaster University > Hamilton, Ontario, Canada > http://socserv.mcmaster.ca/jfox > > > > >> -----Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> project.org] On Behalf Of Joshua Wiley >> Sent: July-12-12 2:53 AM

[R] easy way to fit saturated model in sem package?

2012-07-11 Thread Joshua Wiley
that just return FIML estimates of a covariance matrix from raw data, that would be great (but googling and using findFn() from the sos package did not turn up good results). Thanks! Josh -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group Univer

Re: [R] How to compare stacked histograms/datasets

2012-07-11 Thread Joshua Wiley
grams-datasets-tp4635668p4635744.html > Sent from 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.ht

Re: [R] Notation for previous observation in a data frame

2012-07-07 Thread Joshua Wiley
[[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,

Re: [R] How to compare stacked histograms/datasets

2012-07-07 Thread Joshua Wiley
hive 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-con

Re: [R] number of decimal places in a number?

2012-07-07 Thread Joshua Wiley
- > E-Mail: (Ted Harding) > Date: 07-Jul-2012 Time: 11:04:26 > This message was sent by XFMail > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch

Re: [R] differences between survival models between STATA and R

2012-07-06 Thread Joshua Wiley
bit right here I am referring to: > and provide commented, minimal, self-contained, reproducible code. --> ^ -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/

Re: [R] remove loop which compares row i to row i-1

2012-07-05 Thread Joshua Wiley
osting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ ___

Re: [R] vector entry in matix

2012-07-05 Thread Joshua Wiley
tix-tp4635478p4635509.html > Sent from 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-gu

Re: [R] GEE with Inverse Probability Weights

2012-07-05 Thread Joshua Wiley
p 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 commented, minimal, self-contained, reproducible code. -- Joshua Wil

Re: [R] loop for regression

2012-07-04 Thread Joshua Wiley
Apologies to Bert, I see now that "market" is a variable in the dataset, not a generic name for market indicators. lm() with a matrix as the outcome seems the best approach here. Josh On Wed, Jul 4, 2012 at 12:12 PM, Joshua Wiley wrote: > On Wed, Jul 4, 2012 at 11:48 AM, Bert

Re: [R] loop for regression

2012-07-04 Thread Joshua Wiley
ASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > > > -- > > Bert Gunter > Genentech Nonclinical Biostatistics > > Internal Contact Info: > Phone: 4

Re: [R] loop for regression

2012-07-03 Thread Joshua Wiley
; [[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

Re: [R] Help with lmer formula

2012-07-02 Thread Joshua Wiley
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 Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __

Re: [R] plot.prcomp() call/eval

2012-06-29 Thread Joshua Wiley
On Fri, Jun 29, 2012 at 1:20 AM, Jessica Streicher wrote: > Hm.. i attached a file with the code, but it doesn't show up somehow.. non text files are scrubbed, and only certain file extensions are allowed (I forget which, I know that .R is *not* allowed (although I think that .txt and maybe .log

Re: [R] plot.prcomp() call/eval

2012-06-28 Thread Joshua Wiley
re better ways to save yourself code, but I can say that there often are. > > greetings > Jessica > > On 28.06.2012, at 17:15, Joshua Wiley wrote: > >> Hi Jessica, >> >> x <- call("plot", quote(pcaI)) >> eval(x) >> >> that

Re: [R] plot.prcomp() call/eval

2012-06-28 Thread Joshua Wiley
tps://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, Health Psychology Progr

Re: [R] Large Test Datasets in R

2012-06-24 Thread Joshua Wiley
.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, Health Psychology Programmer Analyst II, Statistical Consulting Group University of Cali

Re: [R] Defining multiple variables in a loop

2012-06-24 Thread Joshua Wiley
;>>> >>>> OECDsamplepanel <- pdata.frame(data, index = NULL, drop = F) >>>> >>>> plm <- plm(V5 ~ lag(V6, 1) + V3 + V4 + V5, data = OECDSamplepanel, >>>> model = "within") >>>> >>>> coefficients <

Re: [R] eval parse question

2012-06-20 Thread Joshua Wiley
ASE 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 Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.c

Re: [R] populating a large matrix

2012-06-19 Thread Joshua Wiley
earth is spherical is just as wrong as thinking the earth is > flat, then your view is wronger than both of them put together." > > Isaac Asimov (1989). "The Relativity of Wrong." The Skeptical Inquirer, > 14(1), 35-44. Fall 1989. > http://chem.tufts.edu/AnswersInScience/Rel

Re: [R] Storing datasets

2012-06-12 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 > and provide commented, minimal, self-contained, reproducible code.

  1   2   3   4   5   6   7   8   9   10   >