[R] Sample size using residual standard deviation
In R how to calculate sample size,where power,residual standard deviation and treatment difference is given.? [[alternative HTML version deleted]] __ R-help@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] Sample size calculation for three-way incomplete block crossover study.
Hi In R,how to do sample size calculation for three-way incomplete block crossover study where within subject residual standard deviation,treatment difference and power is given. Thanks in advance. Regards Jose [[alternative HTML version deleted]] __ R-help@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] Sensitivity,Specificity and Youden Index
How to calculate the sensitivity,specificity,Youden index for 18 factors and their combination (6 factors in each) with an outcome measure. [[alternative HTML version deleted]] __ R-help@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] Accessing files from Linux Server
Hi Which R package can be best employed to access the files in Linux server Thanks in advance Jose [[alternative HTML version deleted]] __ R-help@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] Importing SAS datasets into R efficiently
Hi Is there an efficient way to import SAS datasets into R,presently while using haven package it takes long time...Is there a smart work around this ? Thanks in advance Jose [[alternative HTML version deleted]] __ R-help@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] Q-Q Plot for loglogistic, lognormal and 2 parameter exponential distributions
Is there any R package that can plot Q-Q plot for loglogistic,lognormal and 2 parameter exponential distributions or is there a way to check the model fit for these distributions in R ? [[alternative HTML version deleted]] __ 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.
[R] Parameter estimation of loglogistic, lognormal and 2 parameter exponential distributions
How to estimate paremeters the of loglogistic,lognormal and 2 parameter exponential distributions in R using fitdistr function. [[alternative HTML version deleted]] __ 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.
[R] 2 missing observation of LSD analysis in R
How to deal with the analysis of 2 missing observations in case of Latin square design [[alternative HTML version deleted]] __ 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.
[R] Rayleigh Distribution
Is it possible to code in R to get Q-Q plot for Rayleigh distribution Jose [[alternative HTML version deleted]] __ R-help@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.
Re: [R] Rayleigh Distribution
Thank you,how to add correct reference line to this Rayleigh Q-Q plot. Jose [[alternative HTML version deleted]] __ R-help@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] Q-Q plot reference line
How can the reference line be drawn for various distributions like Rayleigh and Log logistic Q-Q plots. Thanks Jomy [[alternative HTML version deleted]] __ R-help@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] Yates correction
I tried to do chi square test for the following observed frequencies - A B A 8 4 B 12 10 R gave the following output: --- Pearson's Chi-squared test with Yates' continuity correction data: M X-squared = 0.10349, df = 1, p-value = 0.7477 Warning message: In chisq.test(M) : Chi-squared approximation may be incorrect --- Whether this result can be relied or we have to use Fishers exact test ? Jose [[alternative HTML version deleted]] __ R-help@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] Export R outputs to SAS dataset
Hi I was able to run R code via PROC IML in SAS,so is there any way to export the generated outputs to SAS datasets since the R outputs don't follow data frame structure. Thanks in advance Jose [[alternative HTML version deleted]] __ R-help@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.
Re: [R] Export R outputs to SAS dataset
Hi Daniel Thanks,please find the code and output #R libraries- library(tidyverse) library(MF) MFSubj(lesion ~ group, calflung) HLBoot(lesion ~ group, calflung, compare = c("con", "vac"), b = 100, B = 100, alpha = 0.05, hpd = TRUE, bca = FALSE, return.boot = FALSE, trace.it = FALSE, seed = NULL) 1 bootstrap samples 95% confidence intervals Comparing vac to con Mitigated Fraction observed median lower upper Equal Tailed0.44 0.4464 0.1360 0.7024 Highest Density 0.44 0.4464 0.1456 0.7088 Hodges-Lehmann observed median lowerupper Equal Tailed-0.07335 -0.07125 -0.170425 -0.01480 Highest Density -0.07335 -0.07125 -0.156350 -0.00975 Quartile Differences (quartiles of vac - quartiles of con) observedmedianlower upper Q25 -0.041500 -0.041300 -0.10340 -0.000905 Q50 -0.112525 -0.75 -0.28115 0.019350 Q75 -0.168000 -0.170425 -0.38650 0.03 Quartiles of con observed median lower upper Q25 0.054000 0.054000 0.01525 0.11275 Q50 0.139275 0.139275 0.06140 0.31000 Q75 0.315000 0.315000 0.17300 0.45250 Quartiles of vac observed median lowerupper Q25 0.01250 0.01250 0.00125 0.026000 Q50 0.02675 0.02675 0.01665 0.144575 Q75 0.14700 0.14700 0.02810 0.292000 Best Jose On Sun, Aug 23, 2020 at 2:44 AM Daniel Nordlund wrote: > On 8/22/2020 9:05 AM, Rasmus Liland wrote: > > On 2020-08-22 08:17 +0530, Jomy Jose wrote: > > | Hi > > | I was able to run R code via PROC IML > > | in SAS,so is there any way to export > > | the generated outputs to SAS datasets > > | since the R outputs don't follow data > > | frame structure. > > > > Dear Jomy, > > > > But perhaps you can take the outputs in > > SAS and work on them inside from there? > > > > To export a data frame from R to SAS via > > a file[1], you can use > > > > foreign::write.foreign(..., package="SAS") > > > > But I have not tried it. > > > > I have used foreign::read.spss before, > > hehe :-) > > > > I know R is also possible to call from > > Julia, and the df appearing in Julia, > > this sounds like it should be possible > > SAS too[2], yes? > > > > Best, > > Rasmus > > > > [1] https://www.statmethods.net/input/exportingdata.html > > [2] > https://documentation.sas.com/?docsetId=imlug&docsetTarget=imlug_r_sect012.htm&docsetVersion=15.1&locale=en > > > > __ > > R-help@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. > > Can you give a reproducible example of the R-code you are running and > the R "output" you want to get back in SAS? It is difficult from way > over here to know if you are wanting numerical results like means or > regression coefficients ... or if you just want printed output in your > SAS log or listing. > > Dan > > -- > Daniel Nordlund > Port Townsend, WA USA > > [[alternative HTML version deleted]] __ R-help@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.