[R] simulation\bootstrap of list factors

2013-04-17 Thread Berg, Tobias van den
Dear R experts, I am trying to simulate a list containing data matrices. Unfortunately, I don't manage to get it to work. A small example: n=5 nbootstrap=2 subsets<-list() for (i in 1:n){ subsets[[i]] <- rnorm(5, mean=80, sd=1) for (j in 1:nbootstrap){ test<-list()

[R] reverse sweep operator

2013-04-02 Thread Berg, Tobias van den
Dear R-users, For obtaining a weighted correlation matrix with (some) missing data I use the sweep operator (swp function in the ggm-package) to find the maximum likelihood estimates of the standardized slopes and error variances. In the end I would like to use a reverse sweep operator but unfo

Re: [R] changing y-axis intervals in a boxplot

2013-03-29 Thread Berg, Tobias van den
nsectSprays, col = "lightgray", yaxt='n') >> axis(2, at=seq(0,25,2.5)) >> boxplot(count ~ spray, data = InsectSprays, col = "lightgray", yaxt='n') >> axis(2, at=seq(0,25,1)) >> >> HTH, >> Pascal >> >> >> On 29/03/1

Re: [R] changing y-axis intervals in a boxplot

2013-03-29 Thread Berg, Tobias van den
ias -----Oorspronkelijk bericht- Van: Pascal Oettli [mailto:kri...@ymail.com] Verzonden: vrijdag 29 maart 2013 8:44 Aan: Berg, Tobias van den CC: 'r-help@r-project.org' Onderwerp: Re: [R] changing y-axis intervals in a boxplot Hello, ?par (particularly the 'yaxt' argumen

[R] changing y-axis intervals in a boxplot

2013-03-29 Thread Berg, Tobias van den
Dear R-users, I'm a bit of a rooky in R and do not know how to change the y-axis intervals of a boxplot. The y-axis in my boxplot ranges from 0 to 100 which is fine. The problem is the interval level in between. Now it increases with steps of 20 but I'd like to have it changed by steps of 5.

Re: [R] error: in catg (xi, name=nam, label=lab): "LO2" has <2 category levels

2012-09-10 Thread Berg, Tobias van den
[dwinsem...@comcast.net] Verzonden: vrijdag 7 september 2012 18:17 Aan: Berg, Tobias van den CC: PIKAL Petr; r-help Onderwerp: Re: [R] error: in catg (xi, name=nam, label=lab): "LO2" has <2 category levels On Sep 7, 2012, at 8:03 AM, Berg, Tobias van den wrote: > Dear all, > &g

Re: [R] error: in catg (xi, name=nam, label=lab): "LO2" has <2 category levels

2012-09-07 Thread Berg, Tobias van den
quot;nee geen atrofie",..: 1 1 1 1 1 1 1 1 1 1 ... [[1]] NULL [[2]] NULL [[3]] NULL [[4]] NULL [[5]] NULL [[6]] NULL [[7]] NULL [[8]] NULL [[9]] NULL [[10]] NULL It would be great to receive ideas, comments or questions about my challenge. Kind regards, Tobias -----Oorspronkelijk ber