[R] path-diagram wirh Rgraphvis

2012-07-27 Thread René Mayer
Dear List, how can I draw the following path diagram A B C D E F \ | / \ | / G -- H / \/ \ I JK L the problem I've got is that G and H need to be horizontally alingned but the best I've done is diagonally or vertically alingned, kind regards, Rene ## Begin: R-code

[R] how to cumulate up times

2012-04-24 Thread René Mayer
Dear List, given a vecor of times in 5,15 and 30 minutes and a start point in time, lets say 09:30:00, how do I add up those times to the start time getting a cumulative time sequence? mt-times(c('00:05:00', '00:15:00', '00:30:00')) mt wanted 00:05:00 09:35:00 00:15:00 09:50:00 00:30:00

Re: [R] how to cumulate up times

2012-04-24 Thread René Mayer
) + cumsum(mt) Michael On Tue, Apr 24, 2012 at 11:35 AM, René Mayer ma...@psychologie.tu-dresden.de wrote: Dear List, given a vecor of times in 5,15 and 30 minutes and a start point in time, lets say 09:30:00, how do I add up those times to the start time getting a cumulative time sequence? mt

Re: [R] scatter3d: problem with spheres-color

2012-04-13 Thread René Mayer
Dear John and Duncan, thanks for your ideas! Unfortunatly, calling spheres from rgl did not resolve the problem on my machine. Both - spheres3d() and rgl.spheres() - behave the same: black spheres, all aqual colored. The only difference beeing the looking angle and thebackround color. Seems to

Re: [R] scatter3d: problem with spheres-color

2012-04-13 Thread René Mayer
murdoch.dun...@gmail.com: On 12-04-13 5:32 AM, René Mayer wrote: Dear John and Duncan, thanks for your ideas! Unfortunatly, calling spheres from rgl did not resolve the problem on my machine. Both - spheres3d() and rgl.spheres() - behave the same: black spheres, all aqual colored. The only

[R] scatter3d: problem with spheres-color

2012-04-12 Thread René Mayer
Dear List, I don't get scatter3d to color the sheres according to the '|' argument. library(car) scatter3d(prestige ~ income + education|type, data=Prestige) The spheres on my screen are all colored the same and they are not conditional on Prestige$type. On the other hand: Fit3d and Ellipse3d

[R] how to get inflection point in binomial glm

2011-12-01 Thread René Mayer
Dear All, I have a binomial response with one continuous predictor (d) and one factor (g) (8 levels dummy-coded). glm(resp~d*g, data, family=binomial) Y=b0+b1*X1+b2*X2 ... b7*X7 how can I get the inflection point per group, e.g., P(d)=.5 I would be grateful for any help. Thanks in

Re: [R] how to get inflection point in binomial glm

2011-12-01 Thread René Mayer
|-b0 -b0=b1*X |/b1 -b0/b1=X but I was hoping there might a more general solution for the case of multiple logistic regression. HTH René Zitat von David Winsemius dwinsem...@comcast.net: On Dec 1, 2011, at 8:24 AM, René Mayer wrote: Dear All, I have a binomial response with one

Re: [R] cca with repeated measures

2011-11-19 Thread René Mayer
Thanks again Gavin!, this is very clear and enlightening, vegan is an amazing package! It's a pleasure to use it. the best, René -- Dr. René Mayer Email: ma...@psychologie.tu-dresden.de Research Assistant Phone: +49-351-463-34568 Department of Psychology

[R] cca with repeated measures

2011-11-18 Thread René Mayer
Dear all, How can I run a constrained correspondence analysis with the following data: 15 animals were measured repeatedly month-wise (over to 2 years) according to ther diet composition (8 food categories). our data.frame looks like this: food 1 2 ... 8 sex season year animal freq 12 8

Re: [R] cca with repeated measures

2011-11-18 Thread René Mayer
variation). thanks, René -- Dr. René Mayer Email: ma...@psychologie.tu-dresden.de Research Assistant Phone: +49-351-463-34568 Department of Psychology Fax: +49-351-463-33522 Dresden University of Technology Web: http://tu-dresden.de/en Zitat von Gavin

[R] lattice-dotplot: resize axis

2011-10-05 Thread René Mayer
dear all, I want to make a dotplot with ratings from Items in 6 ItemsGroups. I reordered the items by rating within each group. I plotted the items by rating conditional on ItemGroup. The ordering works as I wanted but my y-aches labels (items) within each ItemGroup are now unequally spaced,

[R] prcomp: results with reversed sign in output?

2011-09-09 Thread René Mayer
Dear All, when I'm running a PCA with prcomp(USArrests, scale = TRUE) I get the right principal components, but with the wrong sign infront Rotation: PC1 PC2 PC3 PC4 Murder 0.5358995 -0.4181809 0.3412327 0.64922780 Assault 0.5831836 -0.1879856 0.2681484 -0.74340748 UrbanPop 0.2781909

Re: [R] prcomp: results with reversed sign in output?

2011-09-09 Thread René Mayer
are along the same axis, only in a different direction. So there is no problem :). hope this helps, Paul On 09/09/2011 09:01 AM, René Mayer wrote: Dear All, when I'm running a PCA with prcomp(USArrests, scale = TRUE) I get the right principal components, but with the wrong sign infront

Re: [R] prcomp: results with reversed sign in output?

2011-09-09 Thread René Mayer
this helps, Ted. On 09-Sep-11 09:42:49, René Mayer wrote: thanks for pointing out Paul, but the thing which is annoying me in the first place IS this direction reversal. this makes no sense for me why could this be? Zitat von Paul Hiemstra paul.hiems...@knmi.nl: Hi, If all the signs are switched

[R] rgl how to plot a cylinder like arrow3d?

2011-08-09 Thread René Mayer
Dear List, I'm trying to draw vector in XYZ with rgl under use of a cylinder3d. Therefore I scale and rotate a basis-cylinder). However, somehow the rotation is wrong as verified by overplotting arrow3d(). Where is my mistake? library(heplots) library(rgl) # ... 2 vectors

Re: [R] rgl how to plot a cylinder like arrow3d?

2011-08-09 Thread René Mayer
=c(0,0,0),end=data[,2],'green') arrow3d(c(0,0,0),data[,1],color='red');arrow3d(c(0,0,0),data[,2], color='green') axes3d(c('x','y','z'));title3d('main','sub','X','Y','Z');box3d() On 11-08-09 5:22 AM, René Mayer wrote: Dear List, I'm trying to draw vector in XYZ with rgl under use

[R] how to merge within range?

2011-05-14 Thread René Mayer
Hello, how can one merge two data frames when in the second data frame one column defines the start values and another defines the end value of the to be merged range. data.frame.1 time ... 13 24 35 46 55 ... data.frame.2 start end 24 37 ?h? ? ... should result in this 13 NA 24 ?h? 35 ?h? 46

Re: [R] how to merge within range?

2011-05-14 Thread René Mayer
(... once you fix the error in the example.) -- David but you might try a package that allows you to use SQL, such as sqldf. On 5/14/11 8:03 AM, David Winsemius dwinsem...@comcast.net wrote: On May 14, 2011, at 8:12 AM, René Mayer wrote: Hello, how can one merge And what happened when you

Re: [R] how to merge within range?

2011-05-14 Thread René Mayer
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of René Mayer Sent: Saturday, May 14, 2011 11:06 AM To: David Winsemius Cc: r-help@r-project.org Subject: Re: [R] how to merge within range? thanks David and Ian, let me make a better example

[R] lmer - how to test correlations?

2010-05-26 Thread René Mayer
Dear mixed modelers, If I have interactions between a categorical covariate and a random-effects grouping factor. How can I test formally the correlations? For example data(Machines, package = MEMSS) fm2aM - lmer(score ~ Machine + (0 + Machine|Worker), Machines) Random effects: Groups Name

[R] How to code repeated measures interaction in lmer?

2010-05-06 Thread René Mayer
Dear Everybody: I want to test an interaction of two repeated measures in lmer() I've response times (Y) from N subjects with two within-subject-factors. aov(Y ~ A*B + Error(subjects/A*B), ...) shows an insigificant interaction p(A:B) = .35 now lmer() lm1 = lmer(Y ~ 1+A+B+(1+A*B|subjects),

[R] how to analyze repeated measures count data?

2010-03-22 Thread René Mayer
Dear R community, I've data-set with reaction times and count data (answers - yes, no) of N subjects under conditions A, B. For the analysis reaction time I used aov. fit.rt = aov(rt ~ A * B + Error(subjects/(A*B)), data = m ) But how do I analyze the frequencies correctly? example fable

[R] interpolation

2010-01-11 Thread René Mayer
,x,type=b) # this fails ? lines(approx(y,x),col=blue) # with xout = c(0:600) thanks in advance, René -- Dr. rer. nat. Dipl.-Psych. René Mayer Dresden University of Technology Department of Psychology Zellescher Weg 17 D-01062 Dresden Tel.: +49-351-4633-4568 Email: ma...@psychologie.tu

Re: [R] interpolation

2010-01-11 Thread René Mayer
I need is to interpolate some points and to preserve the shape. thanks in andvance René Zitat von David Winsemius dwinsem...@comcast.net: On Jan 11, 2010, at 7:44 AM, René Mayer wrote: Dear R-users, I have a complex line by xy-values (ordered by z). And I would like to get interpolated y

[R] SPSS repeated interaction contrast in R

2009-03-01 Thread René Mayer
### -- Dr. rer. nat. Dipl.-Psych. René Mayer Dresden University of Technology Department of Psychology Zellescher Weg 17 D-01062 Dresden Tel.: +49-351-4633-4568 Email: ma...@psychologie.tu-dresden.de -- Dr. rer. nat. Dipl.-Psych. René Mayer