Re: [ESS] brms / cmdstanr crashes in emacs but not terminal

2023-05-27 Thread Joshua Wiley via ESS-help
in the topic, plus I use emacs in Linux so, > I'm sorry if I can't help more. But for sure this will give you some > starting point. > > https://www.emacswiki.org/emacs/ExecPath > > https://emacs.stackexchange.com/questions/64081/how-to-get-the-path-from-the-shell > > Good

[ESS] brms / cmdstanr crashes in emacs but not terminal

2023-05-25 Thread Joshua Wiley via ESS-help
Hi All, I normally work in Emacs (28.2 build 2)) on Windows 11 pro as an admin user. Quite a few of my analyses these days use Stan (via cmdstanr and the brms package as example). I upgraded R to 4.3.0 and Stan. Now, I am quite reliably getting crashes where my R process terminates when using

Re: [ESS] Advice on setting up ESS to edit and knit Rmarkdown files

2021-09-22 Thread Joshua Wiley via ESS-help
Are the bugs something that could be helped if there was small funding for a student internship? If potentially useful, any of the ESS developers can contact me directly. On Thu, Sep 23, 2021 at 3:53 AM Martin Maechler via ESS-help < ess-help@r-project.org> wrote: > > Lionel Henry via

Re: [ESS] Best Practice for building R packages

2020-10-21 Thread Joshua Wiley via ESS-help
I'm not sure I could present, but very interested in watching. I manage a few packages and do it all in Emacs & ESS, but I don't think I take advantage of ESS well, other than its automatic ability to run roxygen2 examples, and syntax highlighting. Happy to read and edit wikis and provide

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

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 rai...@krugs.de wrote: Hi I want to evaluate NA and NaN to FALSE (for indexing) so

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,

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 lucy.le...@newcastle.edu.au wrote: Hi, I wish to simulate some data from a Weibull distribution. The rweibull function in R uses the parameterisation 'with

Re: [R] A basic statistics question

2014-08-15 Thread Joshua Wiley
On Wed, Aug 13, 2014 at 7:41 AM, Rolf Turner r.tur...@auckland.ac.nz 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

Re: [R] Logical operators and named arguments

2014-08-08 Thread Joshua Wiley
On Sat, Aug 9, 2014 at 9:56 AM, Patrick Burns pbu...@pburns.seanet.com 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: sapply(1:3, ``, e2 = 2

Re: [R] Logical operators and named arguments

2014-08-07 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 murdoch.dun...@gmail.com 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

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

Re: [R] Box-cox transformation

2014-07-07 Thread Joshua Wiley
, 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? Thanks, Ravi -Original Message- From: Joshua Wiley

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 ##

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

2014-04-03 Thread Joshua Wiley
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.com 260.673.5518 [[alternative HTML version deleted

Re: [R] predicted values

2014-02-01 Thread Joshua Wiley
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 - Elkhart Group Ltd. http://elkhartgroup.com

[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
. __ 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] How would i sum the number of NA's in multiple vectors

2013-10-17 Thread Joshua Wiley
-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.com [[alternative HTML version deleted]] __ R

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

2013-10-04 Thread Joshua Wiley
/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 Ph.D. Student, Health Psychology University of California, Los

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

2013-10-04 Thread Joshua Wiley
] Error 1 make[2]: *** [all] Error 2 make[1]: *** [R] Error 1 make: *** [all] Error 2 Em 04/10/2013 22:46, Cleber N.Borges escreveu: 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

Re: [R] (sans objet)

2013-10-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 Ph.D. Student, Health

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

2013-09-22 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 Ph.D. Student, Health Psychology University of California, Los Angeles http

Re: [R] Problem with converting F to FALSE

2013-09-05 Thread Joshua Wiley
/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 University of California, Los Angeles http://joshuawiley.com/ Senior Analyst

Re: [R] optim evils

2013-09-04 Thread Joshua Wiley
/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 University of California, Los Angeles http://joshuawiley.com/ Senior Analyst

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

2013-09-04 Thread Joshua Wiley
# 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 a wrong answer Am 03/09/2013 12:29, schrieb Joshua Wiley: Hi Christoph, Use this matrix expression instead

Re: [R] Read a Google Spreadsheet?

2013-09-04 Thread Joshua Wiley
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 - Elkhart Group Ltd. http

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

2013-09-03 Thread Joshua Wiley
-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.com __ R-help@r-project.org mailing list https

Re: [R] Trouble with Slidify and Latex

2013-09-01 Thread Joshua Wiley
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 University of California, Los Angeles http

Re: [R] Help

2013-07-04 Thread Joshua Wiley
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 - Elkhart Group Ltd. http

Re: [R] bootstrapping respecting subject level information

2013-07-04 Thread Joshua Wiley
-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.com __ R-help@r-project.org mailing list https

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

2013-06-07 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 and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los

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

2013-06-07 Thread Joshua Wiley
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 data generating oracle*, the pattern: NA, 1, NA, should be a data entry error --- graduating HS

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 wdun...@tibco.com 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

Re: [R] Bootstrapped 1-sided confidence intervals

2013-05-07 Thread Joshua Wiley
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.com [[alternative HTML version deleted

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, reproducible code. -- Joshua Wiley Ph.D

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

2013-04-27 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://joshuawiley.com/ Senior Analyst - Elkhart Group Ltd. http://elkhartgroup.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

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

2013-04-21 Thread Joshua Wiley
-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.com __ R-help@r-project.org mailing list https

Re: [R] double exponential regression R

2013-04-21 Thread Joshua Wiley
-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.com attachment: fit.png__ R-help@r-project.org mailing

Re: [R] Full Documentation of R analysis

2013-04-04 Thread Joshua Wiley
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.com __ R-help@r

Re: [R] About name of list elements

2013-03-25 Thread Joshua Wiley
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.com __ R-help@r-project.org

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

2013-03-25 Thread Joshua Wiley
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, reproducible code. -- Joshua

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

2013-03-25 Thread Joshua Wiley
, Mar 25, 2013 at 6:18 PM, Joshua Wiley jwiley.ps...@gmail.com 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 On Mon, Mar 25, 2013 at 6:09 PM, Antonio P. Ramos ramos.grad.stud...@gmail.com

Re: [R] identifying and drawing from T distribution

2013-03-15 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, Health Psychology

Re: [R] filling an array

2013-02-23 Thread Joshua Wiley
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.com

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

2013-02-22 Thread Joshua Wiley
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.com

Re: [R] foreach loop, stata equivalent

2013-02-18 Thread Joshua Wiley
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

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

2013-02-11 Thread Joshua Wiley
/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] Migrating R packages from svn/R-Forge to git/Github

2013-02-10 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

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 jwiley.ps...@gmail.com 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. R2HTML

Re: [R] SEM validation: Cross-Validation vs. Bootstrapping

2012-11-01 Thread Joshua Wiley
-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] Hausman test in R

2012-10-28 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 and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II

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

2012-10-28 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, Health Psychology

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

2012-10-14 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, Health

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

2012-10-10 Thread Joshua Wiley
-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] Is there any R function for data normalization?

2012-10-02 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 and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II

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

2012-09-30 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 and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II

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 nalimi...@club.fr 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 = eval(subs)) Not tested, but something along those

Re: [R] Bonferroni correction for multiple correlation tests

2012-08-29 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 Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group

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

2012-08-21 Thread Joshua Wiley
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, Statistical

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

2012-08-21 Thread Joshua Wiley
/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 California, Los

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

2012-08-17 Thread Joshua Wiley
://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, Statistical Consulting Group University

Re: [R] named character question

2012-08-12 Thread Joshua Wiley
-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/ __ R-help@r

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

2012-08-10 Thread Joshua Wiley
on how to get around this limitation on stackoverflow with helpful answers by Ben Bolker and Joshua Wiley: http://stackoverflow.com/q/11335923/289572 (this functionality is now used in function mixed() in my new package afex for obtaining type 3 p-values for mixed models) With few exceptions

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 s.elli...@lgcgroup.com 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

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

2012-08-10 Thread Joshua Wiley
-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/ __ R-help

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

2012-08-10 Thread Joshua Wiley
/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 California

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

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

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 dawa.ya.m...@googlemail.com 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 (would

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

2012-08-02 Thread Joshua Wiley
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:35 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:28 PM, Bert Gunter gunter.ber...@gene.com

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

2012-08-02 Thread Joshua Wiley
, Xuan -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Thursday, August 02, 2012 9:42 AM To: Joshua Wiley Cc: Michael Weylandt; r-help@r-project.org; Xuan Zhao Subject: Re: [R] How to link two R packages together Josh: You may be right ... but I still do

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

2012-08-01 Thread Joshua Wiley
, 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/ __ R-help@r-project.org mailing list https

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

2012-07-28 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

Re: [R] lm without intercept

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

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

2012-07-25 Thread Joshua Wiley
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.com

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

2012-07-23 Thread Joshua Wiley
-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] complexity of operations in R

2012-07-19 Thread Joshua Wiley
-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/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua

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

2012-07-19 Thread Joshua Wiley
-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] Last answer

2012-07-19 Thread Joshua Wiley
://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, Statistical Consulting Group University

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 michael.weyla...@gmail.com 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 jwiley.ps...@gmail.com

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

2012-07-13 Thread Joshua Wiley
- 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 To: r-help@r-project.org Cc: John Fox Subject: [R] easy way to fit saturated model in sem package? Hi, I am wondering if anyone knows of an easy way to fit

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

2012-07-12 Thread Joshua Wiley
-- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

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

2012-07-11 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, Health Psychology Programmer

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

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

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

2012-07-07 Thread Joshua Wiley
, 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/ __ R-help@r-project.org mailing list https

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

2012-07-07 Thread Joshua Wiley
-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/ plots.pdf Description: Adobe PDF document

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

2012-07-06 Thread Joshua Wiley
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html it's this bit right here I am referring to: and provide commented, minimal, self-contained, reproducible code. -- ^ -- Joshua Wiley

Re: [R] GEE with Inverse Probability Weights

2012-07-05 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, Health Psychology Programmer

Re: [R] vector entry in matix

2012-07-05 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] remove loop which compares row i to row i-1

2012-07-05 Thread Joshua Wiley
-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] loop for regression

2012-07-04 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 and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II

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 jwiley.ps...@gmail.com wrote: On Wed, Jul 4, 2012 at 11:48 AM

Re: [R] loop for regression

2012-07-03 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 Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group

Re: [R] Help with lmer formula

2012-07-02 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

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

2012-06-28 Thread Joshua Wiley
-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/ __ R-help

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

2012-06-28 Thread Joshua Wiley
that there are 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 said, I suspect you would be better off avoiding this idiom altogether.  Storing unevaluated

Re: [R] Defining multiple variables in a loop

2012-06-24 Thread Joshua Wiley
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

Re: [R] Large Test Datasets in R

2012-06-24 Thread Joshua Wiley
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/ __ R-help@r-project.org

  1   2   3   4   5   6   7   8   9   10   >