Displaying 3 results from an estimated 3 matches for "nevalainen".
2009 Apr 23
2
Two 3D cones in one graph
Dear R-users:
The following code produces two cones in two panels. What I would like
to have is to have them in one, and to meet in the origin. Does anyone
have any good ideas how to do this?
Thanks for your help
Jaakko
library(lattice)
A<-matrix(ncol=2, nrow=64)
for(i in 0:63)
{
A[i+1,1]<-sin(i/10)
A[i+1,2]<-cos(i/10)
}
2009 Jul 09
0
Programming using formulas
...archical structure, is it the "|" and how can I restrict the number
of hierarchical levels?
And how to use in this context, the data, subset, weights and na.action
arguments?
In case you are wondering what I plan to implement, one references for
example is:
Haataja, R., Larocque, D., Nevalainen, J. and Oja, H. (2009). A weighted
multivariate signed-rank test for cluster-correlated data. Journal of
Multivariate Analysis, 100, 6, 1107-1119.
Thanks you very much for your help in advance!
Best wishes,
Klaus
--
Klaus Nordhausen
Researcher
Tampere School of Public Health
FIN-33014 Univer...
2017 Oct 17
4
uniform sampling without replacement algorithm
Let us consider the current uniform sampling without replacement
algorithm. It resides in function do_sample in
https://svn.r-project.org/R/trunk/src/main/random.c
Its complexity is obviously O(n), where the sample is selected from
1...n, since the algorithm has to create a vector of length n. So when
the sample size is much lesser than n, the algorithm is not effective.
Algorithms with