Hi Rui, Thank you for getting back to me. Is there is a better way to calculate Z scores if I have p values, SE and Beta? Thanks Ana On Wed, May 6, 2020 at 9:27 AM Rui Barradas <ruipbarradas at sapo.pt> wrote:> > Hello, > > That gives the *absolute* t-scores. If it's all you need/want, then the > answer is yes, you can. > > Hope this helps, > > Rui Barradas > > ?s 14:28 de 06/05/20, Ana Marija escreveu: > > Hello, > > > > Can I apply the quantile function qt() this way? > > qt(pvals/2, 406-34, lower.tail = F) > > to get the T-scores? > > > > Thanks > > Ama > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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. > >
Hello, By z-scores do you mean function help('scale')? Hope this helps, Rui Barradas ?s 15:31 de 06/05/20, Ana Marija escreveu:> Hi Rui, > > Thank you for getting back to me. Is there is a better way to > calculate Z scores if I have p values, SE and Beta? > > Thanks > Ana > > On Wed, May 6, 2020 at 9:27 AM Rui Barradas <ruipbarradas at sapo.pt> wrote: >> >> Hello, >> >> That gives the *absolute* t-scores. If it's all you need/want, then the >> answer is yes, you can. >> >> Hope this helps, >> >> Rui Barradas >> >> ?s 14:28 de 06/05/20, Ana Marija escreveu: >>> Hello, >>> >>> Can I apply the quantile function qt() this way? >>> qt(pvals/2, 406-34, lower.tail = F) >>> to get the T-scores? >>> >>> Thanks >>> Ama >>> >>> ______________________________________________ >>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> 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. >>>
as defined here: https://huwenboshi.github.io/data%20management/2017/11/23/tips-for-formatting-gwas-summary-stats.html where Effect size is Beta On Wed, May 6, 2020 at 9:41 AM Rui Barradas <ruipbarradas at sapo.pt> wrote:> > Hello, > > By z-scores do you mean function help('scale')? > > Hope this helps, > > Rui Barradas > > ?s 15:31 de 06/05/20, Ana Marija escreveu: > > Hi Rui, > > > > Thank you for getting back to me. Is there is a better way to > > calculate Z scores if I have p values, SE and Beta? > > > > Thanks > > Ana > > > > On Wed, May 6, 2020 at 9:27 AM Rui Barradas <ruipbarradas at sapo.pt> wrote: > >> > >> Hello, > >> > >> That gives the *absolute* t-scores. If it's all you need/want, then the > >> answer is yes, you can. > >> > >> Hope this helps, > >> > >> Rui Barradas > >> > >> ?s 14:28 de 06/05/20, Ana Marija escreveu: > >>> Hello, > >>> > >>> Can I apply the quantile function qt() this way? > >>> qt(pvals/2, 406-34, lower.tail = F) > >>> to get the T-scores? > >>> > >>> Thanks > >>> Ama > >>> > >>> ______________________________________________ > >>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > >>> 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. > >>>
Patrick (Malone Quantitative)
2020-May-06 14:51 UTC
[R] calculating t-score/t-stats as my zscores
Guessing for Ana, but no, that's a different meaning. Beta/StdErr is a z statistic--a test statistic against (usually) the tails of the unit normal distribution. So like a t-test with infinite df. On Wed, May 6, 2020 at 10:41 AM Rui Barradas <ruipbarradas at sapo.pt> wrote:> > Hello, > > By z-scores do you mean function help('scale')? > > Hope this helps, > > Rui Barradas > > ?s 15:31 de 06/05/20, Ana Marija escreveu: > > Hi Rui, > > > > Thank you for getting back to me. Is there is a better way to > > calculate Z scores if I have p values, SE and Beta? > > > > Thanks > > Ana > > > > On Wed, May 6, 2020 at 9:27 AM Rui Barradas <ruipbarradas at sapo.pt> wrote: > >> > >> Hello, > >> > >> That gives the *absolute* t-scores. If it's all you need/want, then the > >> answer is yes, you can. > >> > >> Hope this helps, > >> > >> Rui Barradas > >> > >> ?s 14:28 de 06/05/20, Ana Marija escreveu: > >>> Hello, > >>> > >>> Can I apply the quantile function qt() this way? > >>> qt(pvals/2, 406-34, lower.tail = F) > >>> to get the T-scores? > >>> > >>> Thanks > >>> Ama > >>> > >>> ______________________________________________ > >>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > >>> 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. > >>> > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.-- Patrick S. Malone, Ph.D., Malone Quantitative NEW Service Models: http://malonequantitative.com He/Him/His