Re: [R] downsampling

2009-07-27 Thread Jan M. Wiener
='green', lwd=2) > > # or fit a loess curve > # had to play with span to make it look ok > model <- loess(y~x, foo, span=1/2) > x <- seq(1, 115, length.out=30) > bar <- predict(model, newdata=data.frame(x=x, y=NA)) > lines(x, bar, col='blue', lwd=

[R] warnings and errors

2009-07-30 Thread Jan M. Wiener
(one?) would love to have is a simple (standard) output that tells you the filename and the line-number that produced an error/warning. I find it hard to belief that this does not exist, and would be most grateful for any suggestions. jan -- Dr. Jan M. Wiener Centre for Cognitive Science University

[R] calculating/plotting error ellipses

2007-09-24 Thread Jan M. Wiener
hello, sorry for posting what may be a simple question: i do have a matrix of coordinates (positional judgments, see below) and now want to calculate and plot the corresponding error ellipse. can anyone help me with the exact steps/syntax? > xyDat X Y 1-0.49-2.13 2

[R] calculating/plotting error ellipses

2007-09-24 Thread Jan M. Wiener
3 2 0.91 0.48 3 0.20-2.80 4-0.76-3.23 5-0.36 2.50 6 1.38 1.24 7-1.73-2.14 8-0.28-1.97 9-2.65 0.91 10-2.03 0.92 11 0.40-1.54 12-1.40 2.39 thank you very much in advance. best jan -- Dr. Jan M. Wiener LPPA - Coll

Re: [R] calculating/plotting error ellipses

2007-09-25 Thread Jan M. Wiener
would be greatly appreciated. Best, Jan bbolker wrote: > > Jan M. Wiener wrote: > >> hello, >> sorry for posting what may be a simple question: >> i do have a matrix of coordinates (positional judgments, see below) and >> now want to calculate and plot the co

[R] resclaing/resampling data

2007-10-19 Thread Jan M. Wiener
values in columns 1 are also between 1 and 6 (as in mat1). Of, course the values in column 2 should be rescaled accordingly (simple interpolation). Are there any predefined functions in R that does such rescaling? Thanks for any answers, Jan -- Dr. Jan M. Wiener LPPA - Collège de France - CNRS

[R] another resampling question

2007-10-26 Thread Jan M. Wiener
Hello, I do have a question regarding resampling of data (matrices). Imagine having 2 data sets, organized in a matrix with two columns, the first column being, eg, traveled distance, the second column being some dependent variable. I now have 2 data sets from two subjects covering the same distanc