[R] Mixed model specification

2009-06-10 Thread Boks, M.P.M.
Dear R-friends, I would very much appreciate any direction you can give me regarding the following: I am trying to specify a model with three random effects (var1, var2 and constant) in two levels (nested in pair): lme(dependend ~ age + gender, random=list(pair = pdIdent(~var1 + var2 +1))

[R] number of required trials

2008-10-19 Thread Boks, M.P.M.
Dear Experts, Probably trivial, but I am struggling to get what I want: I need to know how the number of required trials to get a certain number of successes. By example: How many trials do I need to have 98% probability of 50 successes, when the a priory probability is 0.1 per trial. The N

Re: [R] Automatic placement of Legends

2008-07-08 Thread Boks, M.P.M.
You may want to look at locator(1) for manual placements; legend(locator(),...) BW Marco -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] namens [EMAIL PROTECTED] Verzonden: di 8-7-2008 20:31 Aan: r-help@r-project.org Onderwerp: [R] Automatic placement of Legends Dear R-Us

[R] Specific question on LDheatmap

2008-07-08 Thread Boks, M.P.M.
Dear R-friends, I am stuck making an LD plot of a small genotype set: An exert of my data (genotypes) >tempped.exert V27/V28 V33/V34 V39/V40 V41/V42 1 B/B B/B A/A B/B 2 B/A B/B A/B B/B 3 B/B B/B A/A B/B 4 B/A B/A A/B B/A 5

[R] trivial list question

2008-07-01 Thread Boks, M.P.M.
Dear experts, For the makeGenotype function I need a list as in the example. However, since my list needs to be 184 long there must be an easy way to make it. >list(1:2,3:4,5:6,7:8) [[1]] [1] 1 2 [[2]] [1] 3 4 [[3]] [1] 5 6 [[4]] [1] 7 8 I have tried lis<-1:184 dim(lis)=c(92,2,1) as.li

Re: [R] Imputation Packages

2008-03-03 Thread Boks, M.P.M.
Have a look at the Hmisc package Kind regards, Marco -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens John Fox Verzonden: maandag 3 maart 2008 14:05 Aan: 'James Reilly'; 'ArunPrasad' CC: r-help@r-project.org Onderwerp: Re: [R] Imputation Packages Dear J

[R] make dataframe from table

2008-02-04 Thread Boks, M.P.M.
Dear R-experts, I have got a dataframe: data ID disease V1 V2 1 p1 1 2 p1 3 3 p3 3 4 p3 5 5 p5 1 >From which I extract a usefull table: affect affect 1 3 5 p1 1 1 0 p3 0 1 1 p5 1 0 0 I want to merge this with anotherdataframe: age p1 23 p2 24 p3 23 p4 11 p5 45

[R] reordering huge data file

2008-01-21 Thread Boks, M.P.M.
Dear R-experts, My problem is how to handle a 10GB data file containing genotype data. The file is in a particular format (Illumina final report) and needs to be altered and merged with phenotype data for further analysis. PERL seems to be an frequently used solution for this type of work, how

Re: [R] Heatmap problem

2007-11-22 Thread Boks, M.P.M.
Try Heatmap.2 in the gplots package. BW, Marco -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Jim Lemon Verzonden: donderdag 22 november 2007 11:21 Aan: affy snp CC: r-help@r-project.org Onderwerp: Re: [R] Heatmap problem affy snp wrote: > Hi friends,