Couldn't find it anywhere, so for future users who stumble on this thread,
here is some code.
Note: If your data has missing values, delete those observations from the
data first before running this code.
Place these functions in the global environment (ie run the code below).
Then, to obtain t
If you come across an archived thread that you would like to reply to, how
do you reply to it without starting a new thread?
Joe Boyer
Statistical Sciences
Renaissance Bldg 510, 3233-D
Mail Stop RN0320
8-275-3661
cell: (610) 209-8531
[[alternative HTML version deleted]]
___
Does anyone know if any R package has a function that will conduct
Hollander's test of bivariate symmetry?
(Hollander, Biometrika, 1971)
Either the exact test or an asymptotic version would be sufficient for my
purposes.
Thanks.
Joe Boyer
Statistical Sciences
Renaissance Bldg 510, 3233-D
When I run a macro that uses RExcel, I get a dialog box that says
"Microsoft Excel is waiting for another application to complete an OLE
action."
There is no error in the RExcel commands in the macro, of that I am sure.
The box appears to be related to the inclusion of RunRFile commands.
The m
Thank you, I appreciate your reply.
I have managed to get Shell("c:\TEMP\Rbatch.bat") to work.
What solved the problem was saving the Rbatch.bat file as type "All files"
as opposed to as a text file.
Why that worked, I have no idea.
Joe Boyer
Statistical Sciences
Renaissance Bldg 510, 3233-D
The following command, issued from the DOS command prompt (running Windows
XP), produces the intended result of a .csv file created by program.R:
?c:\program files\R\R-2.8.0\bin\Rterm.exe? --save < "c:\TEMP\program.R"
However, when I create a file called Rbatch.bat that contains exactly the
lin
The first program generates an error message and does not execute the
regression of y on x.
x<-1:10;
y<-rnorm(10) + x;
prac <- function( model, wghts ){ lm(model, weights = wghts) }
prac(model = y~x, wghts = rep(1, 10))
But the next program works:
x<
Jeffrey and Jeff,
Thank you for clearing this up.
The problem was that I didn't read page 47 of the guide carefully. The
introduction of the <<- operator on page 44 leaves
me with the impression that <<- will create an assignment in the local
environment THAT ALSO holds true for the next
higher
Thomas, Jeff, Mark, Antonio,
Thank you for your answers. They have helped me clarify how R functions
work. They work differently from SAS functions (which SAS calls macros.)
If you know SAS, consider the following code:
*
%macro q(y);
data one;
outvar = &y. + &x.; output;
c
I am trying to understand the concept of lexical scope in "An Introduction
to R" by the R Core development team.
I'd appreciate it if someone would explain why the following example does
not work:
q <- function(y) {x + y}; w <- function(x){q(x)}; w(2);
According to the discussion of Scope on p
I'm trying to understand the use of recursive functions described on page
45 of An Introduction to R by the R core development team.
A function is a list of expressions, which all get executed with only the
last being assigned to a global variable, right?
So if a function refers recursively to
11 matches
Mail list logo