Displaying 20 results from an estimated 1000 matches similar to: "how to do association study based on mixed linear model"
2013 Jan 07
2
how to aggregate T-test result in an elegant way?
Dear all:
Plan 1:
I want to do serval t-test means for different variables in a loop ,
so I want to add all results to an object then  dump() them to an
text. But I don't know how to append T-test result to the object?
I have already plot the barplot and I want to know an elegant way to
report raw result.
Can anybody give me some pieces of advice?
Yao He
?????????????????????????
Master
2013 Jan 23
4
how to read a df like that and transform it?
Dear all
I have a data.frame like that :
father	mother	num_daughter	daughter
291	3906	0	NULL
275	4219	0	NULL
273	4236	1	49410
281	4163	1	49408
274	4226	1	49406
295	3869	2	49403
			        49404
287	4113	0	NULL
295	3871	1	49401
292	3895	4	49396
			        49397
			        49398
			        49399
291	3900	3	49392
How to read it into R and transform it like that:
father mother	num_daughter  
2012 Dec 16
3
how to handle NA values in aggregate()
Dear All:
I am trying to calculate four columns' means in a dataframe like this:
FID  MID     IID         EW_INCU EW_17.5   EMW        EEratio
1   4621  TWF2H5    45.26        NA             15.61         NA
1   4621  TWF2H6    48.02        44.09         13.41      0.3041506
2   4630  TWF2H19   51.44       47.81         NA             NA
2   4631  TWF2H21   NA          52.72         16.70   
2013 Mar 06
1
Transpose a big data file and write to a new file
Dear all:
I have a big data file of 60000 columns and 60000 rows like that:
AA AC AA AA .......AT
CC CC CT CT.......TC
..........................
.........................
I want to transpose it and the output is a new like that
AA CC ............
AC CC............
AA CT.............
AA CT.........
....................
....................
AT TC.............
The keypoint is  I can't read
2012 Dec 20
2
how to read different files into different objects in one time?
Dear All
I have a lot of files in a directory as follows:
"02-03.txt"   "03-04.txt"   "04-05.txt"   "05-06.txt"   "06-07.txt"
"07-08.txt"   "08-09.txt"
 "09-10.txt"   "G0.txt"      "G1.txt"      "raw_ped.txt"
..........................
I want to read them into different objects according
2012 Dec 13
2
How to select a subset data to do a barplot in ggplot2
Hi,everybody
I have a dataframe like this
FID IID STATUS
1    4621    live
1    4628    dead
2    4631    live
2    4632    live
2    4633    live
2    4634    live
6    4675    live
6    4679    dead
10    4716    dead
10    4719    live
10    4721    dead
11    4726    live
11    4728    nosperm
11    4730    nosperm
12    4732    live
17    4783    live
17    4783    live
17    4784    live
2013 Mar 07
2
How to transpose it in a fast way?
Dear all:
I have a big data file of 60000 columns and 60000 rows like that:
AA AC AA AA .......AT
CC CC CT CT.......TC
..........................
.........................
I want to transpose it and the output is a new like that
AA CC ............
AC CC............
AA CT.............
AA CT.........
....................
....................
AT TC.............
The keypoint is  I can't read
2013 Jan 08
1
ggplot not showing all the years on the x-axis
Dear R helpers,
I am currently having hard time fixing the values on the x-axis of a plot
with ggplot: even though I have 12 years, ggplot plots only 3 of them.
Here is my example:
library(ggplot2)
ii <- 2000:2011
ss <- rnorm(12,0,1)
pm <- data.frame(ii,ss)
tmpplot <- ggplot(pm, aes(x = ii, y = ss))
plot <- tmpplot + geom_line()
plot
In my case, ggplot reports on the year 2000,
2013 Jan 09
4
how to count "A","C","T","G" in each row in a big data.frame?
Dear All
I have a data.frame like that:
structure(list(name = c("Gga_rs10722041", "Gga_rs10722249", "Gga_rs10722565",
"Gga_rs10723082", "Gga_rs10723993", "Gga_rs10724555", "Gga_rs10726238",
"Gga_rs10726461", "Gga_rs10726774", "Gga_rs10726967", "Gga_rs10727581",
"Gga_rs10728004",
2011 Aug 12
1
problem in asreml function in wgaim package
Dear R users,
 
I am trying to use "wgaim" package for QTL analysis using mixed model approach. But i am stuck with "asreml" function while using "wgaim" package.
Do i need a separate package to activate "asreml" function beside "wgaim" package ?
 
If so, i tried to download "Asreml-R" package (i guess this is right package
2013 Jan 10
1
how to generate a matrix by an my data.frame
Dear All
It is a little hard to give a good small example of my question,so I
will show  the full data on the bottom and the attachment.Maybe some
one could tell me an appropriate way
to show it.I'm sorry for the inconvenience.
Q:How to generate a  53*53 diagonal matrix by my data
Some problems confused me are that:
1.Since it is a  diagonal matrix,I have tried to transform col1 and
col2 to
2014 Mar 20
0
ASReml-R Course - Chicago APRIL 24/25
Dear Sirs
I would like to make you aware of the following training taking place in Chicago next month.
Analysis of experiments using ASReml-R, Chicago, 24/25th April
This workshop is aimed at scientist/practitioners that are interested in analyzing complex datasets by fitting linear mixed models, particularly users with experience in breeding programs and design and analysis of experiments.
2009 Jun 04
5
Problem installing RCS on SXCE
I was shocked to find no RCS on SXCE 107.  I needed it to update some
RCS archives I had copied over.
No problem - go to sunfreeware and copy it over.  No OpenSolaris branch?
The Solaris 10 package should work.
Only the package install appears to complete and does not - as
documented only in a log file, not on my screen.
OK then, the source for RCS should be easily compiled and installed, I
2018 May 23
1
coef does not work for my ASReml model
Hi Everyone,
I am using ASReml to fit a spatial model. I do not have all the components
of ASReml when I call;
names(summary())
e.g.
names(summary(fcov.asr2))
[1] "call"    "loglik"  "nedf"    "sigma"   "varcomp"
I am trying to get the coefs but I get "NULL".
Does anybody know the reason?
Any help would be much appreciated.
Regards
2004 Jun 18
1
how to store estimates results as scalars of a matrix?
Dear R users,
I've written a loop to generate Moran's test (spdep package) on serval
subsamples of a large dataset. See below a short example.
My loop is working fine, however I would like to be able to store the test
results as lines of a matrix, that I would latter be able to export as a
dataset. My problem is that I'm not sure how I could do this using R.
Any help will be much
2003 Sep 16
3
Question in Using sink function
Could anyone please explain to me why the following writes nothing into
"all.Rout"
file? If the "for" loop is removed, t.test output can be written into
"all.out".
Thanks in advance. 
Minghua Yao
 ......
  zz <- file("all.Rout", open="wt")
  sink(zz)
   
  for(i in 1:n)
  {	  
    Cy3<-X[,2*i-1];
    Cy5<-X[,2*i];
	
    t.test(Cy3, Cy5)
2017 Jun 08
2
Workspace en Rstudio
Estimados,
Les tengo una pequeña consulta.
Estoy trabajando con ASReml en Rstudio, me encuentro corriendo un modelo
(CHL) para obtener el ANOVA de la interacción de los factores gen x env
CHL<- asreml(fixed= MS~geno:env, random = ~rep, data = index) (interacción)
Sin embargo, cuando ejecuto el modelo, R indica que siguiente mensaje:
Current workspace: 128.000000Mb
Warning message:
Abnormal
2013 Dec 06
1
[PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers
On 12/06/2013 06:14 AM, Will Deacon wrote:
> On Wed, Dec 04, 2013 at 08:43:18PM +0000, Richard Yao wrote:
>> The 9p-virtio transport does zero copy on things larger than 1024 bytes
>> in size. It accomplishes this by returning the physical addresses of
>> pages to the virtio-pci device. At present, the translation is usually a
>> bit shift.
>>
>> However,
2013 Dec 06
1
[PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers
On 12/06/2013 06:14 AM, Will Deacon wrote:
> On Wed, Dec 04, 2013 at 08:43:18PM +0000, Richard Yao wrote:
>> The 9p-virtio transport does zero copy on things larger than 1024 bytes
>> in size. It accomplishes this by returning the physical addresses of
>> pages to the virtio-pci device. At present, the translation is usually a
>> bit shift.
>>
>> However,
2009 Mar 02
1
how to pass a command variable in DOS to R program in R CMD BATCH
Hi all,
 
I need to run a program (asreml) thousands of times and each time I have
to provide a slightly different dataset. Because I have to run asreml
under Windows (DOS or scripts) environment, I have trouble to pass a
command variable (or pointer variable or %counter in the following
example) to R program so at each counter R can generate a different data
set for asreml to run. Any