utine, and lavaan has the lavCor()
function to estimate tetrachoric correlations and
fit structural equation models. So you can probably fit your factor model
directly and get correct statistical tests there.
Cheers, David Duffy.
__
R-help@r-projec
models list.
Cheers, David Duffy.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
francesca casalino asked:
Does anyone know how to find the reference allele used for genetic
associations ran in snpStats?
A is ref allele, B is risk allele.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE d
"Vallejo, Roger" asked:
I would like to know if we can estimate Rg between two binary traits
(disease status: alive vs. dead) with the R package.
My data: we have 100 full-sib (FS) families,
and two random samples (each with n= 200 FS fish) from each FS family
were evaluated for disease resis
,r,r,1), nr=2))
x[x>thresh] <- 2
x[x<2] <- 1
polychor(x[,1], x[,2])
}
tr <- double(100)
for(i in 1:100) tr[i] <- sim1()
summary(tr)
Min. 1st Qu. MedianMean 3rd Qu.Max.
0.1571 0.2703 0.3041 0.3010 0.3328 0.4062
--
=c(0.33, 0.33, 0.34)))
"size" should be the total size ie 100.
--
| David Duffy (MBBS PhD) ,-_|\
| email: dav...@qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medical Research \_,-._/
| 3
I am interested in simulating 10,000 2 x 3 tables for SNPs data with the
Hardy Weinberg formulation. Is there a quick way to do this? I am assuming
that the minor allelle frequency is uniform in (0.05, 0.25).
rmultinom() with HWE expectations
__
R-
snpMatrix package is quite nice (read.plink())
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained
,c))
cat("dim\n")
for(i in seq(1, ncol(newtab)-1) {
cat(nlevels(newtab[,1]," ")
}
cat("\nlab ")
for(i in seq(1, ncol(newtab)-1) {
cat(letters[i], " ")
}
cat("\ndat [", newtab[,"Freq"], " ]\n")
--
| David Duffy (MBBS PhD)
small self-contained
example.
Cheers, David Duffy.
--
| David Duffy (MBBS PhD) ,-_|\
| email: dav...@qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medical Research \_,-._/
| 300 Herston Rd, Brisbane
6854775807
--
| David Duffy (MBBS PhD) ,-_|\
| email: dav...@qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medical Research \_,-._/
| 300 Herston Rd, Brisbane, Queensland 4029, Australia GPG
lot of code to port, and are hinting you would like an
automated tool, I think you are out of luck ;) There is a Fortran to Lisp
translator (f2cl), but I think the resulting code will not get you a lot
closer (it is aimed at compilation).
Cheers, David Duffy.
--
| David
can't see if gfortran is
available.
Cheers, David Duffy.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal,
e iterators and foreach packages give ways to iterate
without creating the whole array, so they might do what you want.
The OP may also be interested in the jit package, which currently
just covers (see http://www.milbo.users.sonic.net/ra) loops, but
migh
g
S4 classes" gives us 108 journal citations; "mgcv: GAMs and generalized
ridge regression for R" 80 etc
Cheers, David Duffy.
--
| David Duffy (MBBS PhD) ,-_|\
| email: dav...@qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / *
axes=F, xlab=" ", ylab=" "))
paint.chromosome(1, pos=2.2)
points(cbind(locus_coordinate[chrom==1],
rep(2, length(locus_coordinate)[chrom==1]),
col="red", cex=4)
Unfortunately for you, the units here are cM
] 71.253125 8.493750 0.253125
...
David Duffy.
--
| David Duffy (MBBS PhD) ,-_|\
| email: [EMAIL PROTECTED] ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medical Research \_,-._/
| 300 Herston Rd, Brisbane, Queensland
zero
marginals.Does someone have some suggestions? Please help me out,
thanks a lot!
Cheers,
Yan
One approach: if they are *structural zeroes*,
tab <- as.data.frame(table(x,y))
then use the exactLoglinTest package's mcexact function
Dav
anything of this kind in R?
>
Look at all the libraries whose name starts haplo eg haplo.stats.
--
| David Duffy (MBBS PhD) ,-_|\
| email: [EMAIL PROTECTED] ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medi
think kinship (which uses lme) and
perhaps regress packages. For data amenable to an ANOVA/hierarchical
setup then lme4 as well (which does GLMMs nicely). Have you tried Wombat
(non-R)?
David Duffy.
--
| David Duffy (MBBS PhD) ,-_|\
| email:
lysis of pedigree data), the jackknife
standard errors seemed a bit conservative (too big).
David Duffy.
--
| David Duffy (MBBS PhD) ,-_|\
| email: [EMAIL PROTECTED] ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medi
21 matches
Mail list logo