Thanks for the replies!
Indeed, I could use order() instead of sample() but that it wouldnt be
random anymore, as it sorts data points in increasing(!) order. Second, I
have to use 1000 different samples.
I got the hint that I have to do somethin with indeces, but still cant
figure out what thi
Sorry, but I dont think that I get what you mean (I am a quite new user
though)
I hae a data file of a sample, so I cannot use random numbers, the only
thing I want to do is to randomly reassign the order of the items.
--
View this message in context:
http://r.789695.n4.nabble.com/rearrange-se
Dear all,
I hope that this question is not too weird, I will try to explain it as good
as I can.
I have to write a function for a school project and one limitation is that I
may not use the in built function sample()
At one point in the function I would like to resample/rearrange the items of
my
Thanks, that helps a lot!
--
View this message in context:
http://r.789695.n4.nabble.com/problem-with-merging-two-matrices-tp3983136p3988319.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat
Dear Sarah,
THanks for your answer!
Sorry that my thread is somehow not clear, that's because I am not really
experienced with R and
dont know yet how to put thinings in words..
I am not trying to work with them differently, I am just trying to print
them as the result of a
function. But as the
Dear all,
I hope you can forgive me my stupid questions, but I am a very new R user (;
So, this is my question:
I have two matrices,
those are:
matrix1 <- matrix(cbind(vector1, vector2), 1,2, dimnames = list(c("values"),
c("T valu
I know the lm() function, but I'd like to make my 'own' regression analysis
by using matrix algebra.
Thats why I wrote the function,
but I dont know what values to pick to make it suitable for every dataset.
If I pick a statistical model like lm(y~x) as input, the function would not
know what o
Dear all,
I have a small question.
I would like to write a function for a regression analysis that an be
applied to every dataset.
Now my problem is that I do not know what I have to implement then as input
for the function
mytest <- function (x,y) {
beta <- sol
Dear all,
I am a R user since about 3 weeks now and still struggeling with things that
must be very
easy for you...
This week I am struggling with the function predict()
I want to use this function to get a 95% interval.
I understand that you have to use it in such a way as:
lm_examplemodel<-
Dear all,
Sorry to bother you with such a stupid question, but I just cannot find the
solution to my problem.
I'd like to use matrix multiplication for meanA and factorial 3.
I use the command meanA%*%factorial 3.
But everything I get is: Error in factorial3 %*% A : non-conformable
arguments
I
Dear all,
I wanted to create the mean using a algebra matrix.
so I tried this one:
> meanAnimals <- new3%*%factorial
(Calculates the matrix multiplication of the new3 * factorial).
But I get the following error message:
Error in new3 %*% factorial : non-conformable arguments
These are my m
Hi everyone,
I have the following problem:
I have three variables, 'group', 'city' and 'pressure'
There is an interaction effect between group and city and I'd like to show
this in an interaction plot:
interaction.plot(group, city, pressure, type="b",
col= c(1:2),
12 matches
Mail list logo