Re: [R] Help optimizing EMD::extrema()

2011-02-13 Thread Mike Lawrence
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of William Dunlap Sent: Sunday, February 13, 2011 2:08 PM To: Mike Lawrence; r-h...@lists.r-project.org Subject: Re: [R] Help optimizing EMD::extrema() -Original Message- From: r

[R] Help optimizing EMD::extrema()

2011-02-11 Thread Mike Lawrence
Hi folks, I'm attempting to use the EMD package to analyze some neuroimaging data (timeseries with 64 channels sampled across 1 million time points within each of 20 people). I found that processing a single channel of data using EMD::emd() took about 8 hours. Exploration using Rprof() suggested

[R] [R-pkgs] ez version 3.0

2011-02-11 Thread Mike Lawrence
/should subscribe to keep up to date on development news. Additionally, I created a project page on github (https://github.com/mike-lawrence/ez/issues) where users can submit bug reports and feature requests. Finally, I encourage users to rate or review ez (and any other packages you use

[R] hierarchical mixture modelling

2010-11-22 Thread Mike Lawrence
-- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org mailing list https

[R] [R-pkgs] ez version 2.0

2010-09-01 Thread Mike Lawrence
of the plot facets. - see changelog for further changes Enjoy! Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

[R] compare gam fits

2010-08-05 Thread Mike Lawrence
to it make this an inappropriate concern? Cheers, Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] Getting Sphericity Tests for Within Subject Repeated Measure Anova (using car package)

2009-11-10 Thread Mike Lawrence
-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Sergios (Sergey) Charntikov Sent: November-09-09 7:13 PM To: Mike Lawrence Cc: r-help@r-project.org Subject: Re: [R] Getting Sphericity Tests for Within Subject Repeated Measure Anova (using car package) Hi Mike, I tried to run my

Re: [R] Getting Sphericity Tests for Within Subject Repeated Measure Anova (using car package)

2009-11-10 Thread Mike Lawrence
' ) b$subject=paste(b$subject,b$treatment) #create unique sids ezANOVA( data=b , dv=.(value) , sid=.(subject) , within=.(day) , between=.(treatment) ) On Tue, Nov 10, 2009 at 6:47 AM, Mike Lawrence mike.lawre...@dal.ca wrote: Check out the reshape package for transforming data from long to wide

[R] Quickly generate all possible combinations of 2 groups

2009-11-09 Thread Mike Lawrence
solution to the test all combinations scheme. Cheers, Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] Getting Sphericity Tests for Within Subject Repeated Measure Anova (using car package)

2009-11-09 Thread Mike Lawrence
. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org mailing list https

Re: [R] Getting Sphericity Tests for Within Subject Repeated Measure Anova (using car package)

2009-11-09 Thread Mike Lawrence
-0308  USA On Mon, Nov 9, 2009 at 2:25 PM, Mike Lawrence mike.lawre...@dal.ca wrote: Have you tried ezANOVA from the ez pacakge? It attempts to provide a simple user interface to car's ANOVA (and when that fails, aov). On Mon, Nov 9, 2009 at 1:44 PM, Sergios (Sergey) Charntikov sergios

[R] EM algorithm to fit circular mix of uniform+Von Mises

2009-11-07 Thread Mike Lawrence
couldn't find anything in the contributed packages that seemed to suit this purpose. Any pointers would be greatly appreciated! Cheers, Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im

Re: [R] Creating a specific skewed distribution

2009-06-10 Thread Mike Lawrence
, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] graphically representing frequency of words in a speech?

2009-06-07 Thread Mike Lawrence
() ) -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org mailing list https

Re: [R] Fitting a Weibull Distribution

2009-06-05 Thread Mike Lawrence
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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking

[R] Anyone using Bespin R?

2009-06-01 Thread Mike Lawrence
Just curious whether anyone has any experiences to relate with regards to using Bespin (https://bespin.mozilla.com/) as a text editor for your R scripting. Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public

Re: [R] Within Subject ANOVA question

2009-06-01 Thread Mike Lawrence
__ 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. -- Mike Lawrence Graduate Student Department

Re: [R] ggplot2 legend

2009-05-28 Thread Mike Lawrence
commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] Multiple ANOVA tests

2009-05-27 Thread Mike Lawrence
do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im

Re: [R] Multiple ANOVA tests

2009-05-27 Thread Mike Lawrence
to missingness summary(q)          Length Class       Mode X11_20502 1      summary.aov list X11_21067 1      summary.aov list X11_10419 1      summary.aov list  How can I extract all the Pr(F) values from q (not one by one)? Thanks Imri Mike Lawrence wrote: #create some data y=rnorm(20) x

Re: [R] Labeling barplot bars by multiple factors

2009-05-27 Thread Mike Lawrence
and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] help wth boxplots

2009-05-26 Thread Mike Lawrence
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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking

Re: [R] Help me...!!!

2009-05-26 Thread Mike Lawrence
, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R

Re: [R] How to create all pairs

2009-05-25 Thread Mike Lawrence
commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] help with replacing factors

2009-05-24 Thread Mike Lawrence
. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org mailing list https

Re: [R] Coord_equal in ggplot2

2009-05-19 Thread Mike Lawrence
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http

Re: [R] MAC OSX vs Win XP: Different stats test results!

2009-05-18 Thread Mike Lawrence
, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org mailing

Re: [R] sample variance from simulation

2009-05-18 Thread Mike Lawrence
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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking

Re: [R] sample variance from simulation

2009-05-18 Thread Mike Lawrence
: waclaw.marcin.kusnierc...@idi.ntnu.no To: konk2...@hotmail.com CC: mike.lawre...@dal.ca; r-help@r-project.org Subject: Re: [R] sample variance from simulation Mike Lawrence wrote: why not simply vars=list() for (i in 1:1000) vars[[i]] = var(z[[i]]) ... or, much simpler, vars

Re: [R] MAC OSX vs Win XP: Different stats test results!

2009-05-18 Thread Mike Lawrence
, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r

Re: [R] read multiple large files into one dataframe

2009-05-13 Thread Mike Lawrence
://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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting

Re: [R] Simulation

2009-05-13 Thread Mike Lawrence
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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange

Re: [R] Kumaraswamy distribution

2009-05-12 Thread Mike Lawrence
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar

Re: [R] Two-way Anova

2009-05-12 Thread Mike Lawrence
commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] Do you use R for data manipulation?

2009-05-06 Thread Mike Lawrence
cells of the design. Mike *note: I typically use Python for data collection (showing visual stimuli, recording responses, etc), but have it spit out raw text files of the trial-by-trial data, and thus use it for only a bare minimum of processing. -- Mike Lawrence Graduate Student Department

Re: [R] General Question about Graphics

2009-05-06 Thread Mike Lawrence
, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org mailing

Re: [R] Bumps chart in R

2009-05-06 Thread Mike Lawrence
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar

Re: [R] plot estimates and their 95% confidence intervals

2009-04-27 Thread Mike Lawrence
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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange

Re: [R] Bumps chart in R

2009-04-26 Thread Mike Lawrence
( expand=c(2,2) ) #show the plot print(r) -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R

Re: [R] boxplot of two variables

2009-04-23 Thread Mike Lawrence
code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org mailing list

Re: [R] Sampling in R

2009-04-21 Thread Mike Lawrence
/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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public

[R] OT: Strange bootstrap approach to significance testing

2009-04-21 Thread Mike Lawrence
this makes some sense (though I'd think a straight permutation test would be a lot simpler), but having never heard of anything like this before I thought I'd see what others on this list think of the approach. Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University

Re: [R] Paired test for 2-way ANOVA

2009-04-20 Thread Mike Lawrence
://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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check

Re: [R] Welcome to the R-help mailing list

2009-04-18 Thread Mike Lawrence
__ 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. -- Mike Lawrence Graduate Student Department of Psychology

Re: [R] performing function on data frame

2009-04-16 Thread Mike Lawrence
commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] F test

2009-04-16 Thread Mike Lawrence
-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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University

Re: [R] F test

2009-04-16 Thread Mike Lawrence
effect and a random effect)? and where to find the result of the interaction? Thanks. Jun On Thu, Apr 16, 2009 at 12:08 PM, Mike Lawrence mike.lawre...@dal.ca wrote: summary(my_lm) will give you t-values, anova(my_lm) will give you (equivalent) F-values. summary() might be preferred because

Re: [R] F test

2009-04-16 Thread Mike Lawrence
à 14:08 -0300, Mike Lawrence a écrit : summary(my_lm) will give you t-values, anova(my_lm) will give you (equivalent) F-values. Ahem. Equivalent, my tired foot... In simple terms (the real real story may be more intricate) : The F values stated by anova are something entierely different

Re: [R] How to apply a function to all combinations of the values of 2 or more variables?

2009-04-15 Thread Mike Lawrence
and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think

Re: [R] cbind

2009-04-14 Thread Mike Lawrence
. __ 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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie

Re: [R] cbind

2009-04-14 Thread Mike Lawrence
oops, of course I meant: a=c(NA,NA,2,3,NA,NA,NA) b=1:length(a) cbind(b=b-which.min(is.na(a)),a=a) On Tue, Apr 14, 2009 at 9:43 AM, Mike Lawrence mike.lawre...@dal.ca wrote: a=c(NA,NA,2,3,NA,NA,NA) which.min(is.na(a)) [1] 3 b=1:length(a) b-3 [1] -2 -1  0  1  2  3  4 cbind(b=b-3

Re: [R] cbind

2009-04-14 Thread Mike Lawrence
/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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public

Re: [R] Group by in R

2009-04-13 Thread Mike Lawrence
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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange

Re: [R] weighted mean and by() with two index

2009-04-13 Thread Mike Lawrence
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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking

Re: [R] taking the log then later exponentiate the result query

2009-04-12 Thread Mike Lawrence
-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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie

Re: [R] Quantative procedure assessing if data is normal

2009-04-12 Thread Mike Lawrence
]] __ 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. -- Mike Lawrence Graduate Student Department of Psychology

Re: [R] Genstat into R - Randomisation test

2009-04-08 Thread Mike Lawrence
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar

Re: [R] Genstat into R - Randomisation test

2009-04-08 Thread Mike Lawrence
Assuming you have a data frame with columns ID CD, this should do it Oops, the code I sent doesn't assume this. It assumes that you have two vectors, ID CD, as generated in the first 3 lines. On Wed, Apr 8, 2009 at 11:31 AM, Mike Lawrence mike.lawre...@dal.ca wrote: Looks like that code

Re: [R] Genstat into R - Randomisation test

2009-04-08 Thread Mike Lawrence
in 1:num.permutations){ IDorder = sample(index) perm.cor[i] = .Internal(cor(ID[IDorder], CD, 4, FALSE)) } cat('Elapsed time:',start.time-proc.time(1)) sum(perm.corobs.cor)/num.permutations On Wed, Apr 8, 2009 at 11:33 AM, Mike Lawrence mike.lawre...@dal.ca wrote: Assuming you have

Re: [R] Genstat into R - Randomisation test

2009-04-08 Thread Mike Lawrence
*sigh* and the elapsed time line should be: cat('Elapsed time:',proc.time()[1]-start.time) On Wed, Apr 8, 2009 at 11:35 AM, Mike Lawrence mike.lawre...@dal.ca wrote: *Hits head* Of course, the approach taken by your Genstat code of only shuffling one variable is sufficient and faster

Re: [R] Genstat into R - Randomisation test

2009-04-08 Thread Mike Lawrence
exhaustive permutation test (to contrast with non-exhaustive permutation test). On Wed, Apr 8, 2009 at 1:18 PM, Peter Dalgaard p.dalga...@biostat.ku.dk wrote: Mike Lawrence wrote: Looks like that code implements a non-exhaustive variant of the randomization test, sometimes called a permutation

Re: [R] threshold distribution

2009-04-05 Thread Mike Lawrence
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty is folly... I think

Re: [R] repeated measures ANOVA - among group differences

2009-04-01 Thread Mike Lawrence
]] __ 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. -- Mike Lawrence Graduate Student

Re: [R] repeated measures ANOVA - among group differences

2009-04-01 Thread Mike Lawrence
Hm, it seems I possibly used the technical term nested inappropriately in my response. I meant: If Month is a repeated measure within each Quadrat... and If Treatment is also a repeated measure within each Quadrat... On Wed, Apr 1, 2009 at 8:21 AM, Mike Lawrence mike.lawre...@dal.ca wrote

Re: [R] R Language Bloggers and Web Sites Owners

2009-03-31 Thread Mike Lawrence
Hm, this feels reminiscent of the Wellsphere free blog content scam: http://neurocritic.blogspot.com/2009/02/wealthcentral.html -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes

Re: [R] help about: anova and population no normal

2009-03-31 Thread Mike Lawrence
. Maurizio __ 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. -- Mike

Re: [R] help about: anova and population no normal

2009-03-31 Thread Mike Lawrence
to instead compute, say, the best fit weibull to each condition and simultaneously test shift, shape, and scale. On Tue, Mar 31, 2009 at 12:18 PM, Mike Lawrence mike.lawre...@dal.ca wrote: Those with more formal statistical backgrounds may provide better advice, but in my own informal training I've

Re: [R] how to input multiple .txt files

2009-03-30 Thread Mike Lawrence
(path=path_to_my_files,pattern='cust2',full.names=TRUE) a=NULL for(this_file in cust2_files){ a=rbind(a,read.table(this_file)) } write.table(a,'cust2.master.txt') On Mon, Mar 30, 2009 at 8:55 AM, Mike Lawrence mike.lawre...@dal.ca wrote: my_files = list.files(path=path_to_my_files,pattern

Re: [R] how to input multiple .txt files

2009-03-30 Thread Mike Lawrence
commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty is folly... I think

Re: [R] how to input multiple .txt files

2009-03-30 Thread Mike Lawrence
, a - do.call(rbind, lapply(cust1_files, read.table)) (i believe expanding objects in a for loop belong to the R Inferno) baptiste On 30 Mar 2009, at 12:58, Mike Lawrence wrote: cust1_files = list.files(path=path_to_my_files,pattern='cust1',full.names=TRUE) a=NULL for(this_file in cust1_files

Re: [R] loading and manipulating 10 data frames-simplified

2009-03-28 Thread Mike Lawrence
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty

Re: [R] Way to rotate a histogram?

2009-03-26 Thread Mike Lawrence
() ,axis.title.y = theme_blank() ) print(p1,vp = viewport(width = 1/3,height = 1,x = 1/3*.5,y = .5)) print(p2,vp = viewport(width = 1/3,height = 1,x = 1/3+1/3*.5,y = .5)) print(p3,vp = viewport(width = 1/3,height = 1,x = 2/3+1/3*.5,y = .5)) -- Mike Lawrence Graduate Student Department of Psychology Dalhousie

Re: [R] geometric mean of probability density functions

2009-03-18 Thread Mike Lawrence
$convergence,'\n') sim.gld.par = sim.fit$lambda #assess the fit using sum squared scaled error gld.par.sum.sq.sc.err = sum(((emp.gld.par.means$x-sim.gld.par)/sim.gld.par)^2) print(gld.par.sum.sq.sc.err) -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking

Re: [R] Way to rotate a histogram?

2009-03-17 Thread Mike Lawrence
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty is folly

Re: [R] Way to rotate a histogram?

2009-03-17 Thread Mike Lawrence
:14 PM, Mike Lawrence wrote: library(ggplot2) test_data-rnorm(100) a=data.frame(obs=test_data,condition='None') p1=qplot(        data=a        ,x=obs        ,geom='histogram'        )+coord_flip() p2=qplot(        data=a        ,y=obs        ,x=condition        ,geom='boxplot

Re: [R] How to find maximum values on the density function of a random variable

2009-03-12 Thread Mike Lawrence
, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org

[R] OT: Likelihood ratio for the randomization/permutation test?

2009-03-11 Thread Mike Lawrence
difference score. Any guesses on how to translate this into a quantification of evidence? Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty is folly... I think

Re: [R] Centering multi-line strip text in lattice

2009-03-11 Thread Mike Lawrence
Perfect, thanks! On Wed, Mar 11, 2009 at 7:41 PM, Paul Murrell p.murr...@auckland.ac.nz wrote: Hi Mike Lawrence wrote: I'm having trouble centering multi-line strip text in lattice. As the code below demonstrates bounding box of the text is centered within the strip, but the first line

Re: [R] find the important inputs to the neural network model in nnet package

2009-03-10 Thread Mike Lawrence
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty is folly... I

Re: [R] simple question beginner

2009-03-10 Thread Mike Lawrence
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar

Re: [R] Changing factor to numeric

2009-03-10 Thread Mike Lawrence
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tinyurl.com/mikes-public-calendar ~ Certainty is folly... I think

[R] Centering multi-line strip text in lattice

2009-03-10 Thread Mike Lawrence
? a=data.frame( x=rep(1:10,2) ,y=rep(1:10,2) ,z=rep(c('First Line\nLonger Second Line (1)','First Line\nLonger Second Line (2)'),each=10) ) xyplot( y~x|z ,data=a ,par.strip.text = list(cex = .75, lineheight=1, lines = 2, adj=.5), ) -- Mike Lawrence

Re: [R] how to estimate distribution?

2009-03-09 Thread Mike Lawrence
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http

Re: [R] info

2009-03-09 Thread Mike Lawrence
]] __ 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. -- Mike Lawrence Graduate

Re: [R] Computing sd across an array with missing values

2009-02-26 Thread Mike Lawrence
://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. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting

Re: [R] colored maps again

2009-02-19 Thread Mike Lawrence
]] __ 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. -- Mike Lawrence

Re: [R] error bars

2009-02-18 Thread Mike Lawrence
-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes-public-calendar ~ Certainty is folly... I think

Re: [R] anova help

2009-02-15 Thread Mike Lawrence
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes-public-calendar

Re: [R] Mixed ANCOVA with between-Ss covariate?

2009-02-12 Thread Mike Lawrence
I'm surprised there were no takers on this query; I thought it would be an easy answer, particularly where I provided example data set and code. Did my request run afoul of the list etiquette? On Tue, Feb 10, 2009 at 5:12 PM, Mike Lawrence m...@thatmike.com wrote: Hi all, I have data from

[R] Mixed ANCOVA with between-Ss covariate?

2009-02-10 Thread Mike Lawrence
ANCOVA covariate_aov = aov(dv~covariate+group*iv1*iv2+Error(id/(iv1*iv2)),data=a) summary(covariate_aov) -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes-public

[R] lme() direction

2009-02-07 Thread Mike Lawrence
-- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes-public-calendar ~ Certainty is folly... I think. ~ __ R-help@r

Re: [R] lme() direction

2009-02-07 Thread Mike Lawrence
Would it improve things if type were a continuous variable rather than categorical? I chose words at the extreme ends of a valence rating scale but I still have the raw valence ratings for each word. On Sat, Feb 7, 2009 at 12:02 PM, Dieter Menne dieter.me...@menne-biomed.de wrote: Mike Lawrence

Re: [R] lme() direction

2009-02-07 Thread Mike Lawrence
~valence*luminance , data = a ,random = ~1|id )) On Sat, Feb 7, 2009 at 12:34 PM, Dieter Menne dieter.me...@menne-biomed.de wrote: Mike Lawrence mike at thatmike.com writes: Would it improve things if type were a continuous variable rather than categorical? I chose words

Re: [R] Problems in Recommending R

2009-02-03 Thread Mike Lawrence
will forward your info to my colleague who will then take the temperature of students at the design school. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes-public

Re: [R] Problems in Recommending R

2009-02-03 Thread Mike Lawrence
will forward your info to my colleague who will then take the temperature of students at the design school. Mike -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes

Re: [R] From z to Rho

2009-01-30 Thread Mike Lawrence
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http

Re: [R] help with time series

2009-01-30 Thread Mike Lawrence
. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes-public-calendar ~ Certainty is folly... I think. ~ __ R-help@r-project.org

Re: [R] Help with normal distribution in random samples...

2009-01-28 Thread Mike Lawrence
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http://www.thatmike.com/mikes-public-calendar

Re: [R] Mode (statistics) in R?

2009-01-26 Thread Mike Lawrence
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University www.thatmike.com Looking to arrange a meeting? Check my public calendar: http

Re: [R] R for Computational Neuroscience?

2009-01-25 Thread Mike Lawrence
-continuous attractor network 12.4.3 Networks with random asymmetric weight ma- trix 12.4.4 The Lorenz attractor 12.5 Continuous attractor neural networks 12.5.1 Path-integration 12.6 Error-backpropagation network -- Mike Lawrence Graduate Student Department of Psychology Dalhousie University

  1   2   >