I can't test it right now, but is this ok ?
t.test.new <- function(x, y = NULL,
alternative = c("two.sided", "less", "greater"),
mu = 0, paired = TRUE, var.equal = FALSE,
conf.level = 0.95, ...) {
t.test(x, y,
alternative,
mu, paired, var.equal,
conf.level, ...)
}
2008/9/2 Prabhanjan Tattar <[EMAIL PROTECTED]>
> Hi R!
> I attempt to clear my question through this example. We know that the
> default functions for "t.test" is
> t.test(x, y = NULL,
> alternative = c("two.sided", "less", "greater"),
> mu = 0, paired = FALSE, var.equal = FALSE,
> conf.level = 0.95, ...)
> Suppose, I want to create a new function where "paired=TRUE". What is the
> simpler way of creating such functions? I did try, but without much
> success.
> Thanks in advance
> --
> Prabhanjan N. Tattar
> Lead Statistician
> CustomerXPS
> Bangalore
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [email protected] 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.
>
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.