Displaying 14 results from an estimated 14 matches for "sj_style_1125".
2016 Apr 18
0
R [coding : do not run for every row ]
...xperiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey
2016-04-18 10:35 GMT+02:00 tan sj <sj_style_1125 at outlook.com>:
> Thanks but it seem like the problem of looping through data is still the same....i am really wondering where is the mistake....
>
> ________________________________________
> From: Thierry Onkelinx <thierry.onkelinx at inbo.be>
> Sent: Monday, April 18, 20...
2016 Apr 06
0
R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]
...ve you an idea of how
to index elements of vectors. You could also use a matrix and then
convert it into a vector using as.vector:
testmat3<-matrix(0,nrow=5,ncol=5)
for(i in 1:5) {
for(j in 1:5) {
testmat3[i,j]<-i+j
}
}
as.vector(testmat3)
Jim
On Wed, Apr 6, 2016 at 8:04 PM, tan sj <sj_style_1125 at outlook.com> wrote:
> Hi, i am sorry to interrupt, can I ask about this few problems?
>
> t_equal[(ss-1)*nsds+i]<-t.test(x_norm1,y_norm2,var.equal=TRUE)$p.value
> 1. From above, what do "[(ss-1)*nsds+i]" brings to the code?
>
> 2. what is the purpose of having...
2016 Apr 18
0
R [coding : do not run for every row ]
...xperiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey
2016-04-17 19:59 GMT+02:00 tan sj <sj_style_1125 at outlook.com>:
> i have combined all the variables in a matrix, and i wish to conduct a simulation row by row.
>
> But i found out the code only works for the every first row after a cycle of nine samples.
>
> But after check out the code, i don know where is my mistake...
>...
2016 Apr 06
0
R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]
...t(x_norm1,y_norm2)$p.value
i<-i+1
}
}
#store the current result into matrices by rows
matrix_Equal[sim,]<-t_equal
matrix_Unequal[sim,]<-t_unequal
matrix_mann[sim,]<-mann
}
##print results
matrix_Equal
matrix_Unequal
matrix_mann
Jim
On Wed, Apr 6, 2016 at 12:43 AM, tan sj <sj_style_1125 at outlook.com> wrote:
> Hi, Jim, i read through your example,
> I tried to write a code modified yours example and my ideas ...
> In last email, you replied that "results[[(ss-1)*nssds+ssd_index]]<-<your_test>" ,can i know further about this ? Because i am not very u...
2016 Apr 18
3
R [coding : do not run for every row ]
...xperiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey
2016-04-17 19:59 GMT+02:00 tan sj <sj_style_1125 at outlook.com>:
> i have combined all the variables in a matrix, and i wish to conduct a simulation row by row.
>
> But i found out the code only works for the every first row after a cycle of nine samples.
>
> But after check out the code, i don know where is my mistake...
>...
2016 Apr 18
0
R [coding : do not run for every row ]
...experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey
2016-04-18 9:05 GMT+02:00 tan sj <sj_style_1125 at outlook.com>:
> Hi, i am sorry, the output should be values between 0 and 0.1 and not
> supposed to be 1.00, it is because they are type 1 error rate. And now i get
> output 1.00 for several samples,rhis is no correct. The loop do not run for
> every row. i do not know where is my...
2016 Apr 25
0
use switch or function in connecting different cases.
...,25,100,25,100),5)
sds<-rep(c(1,1.5,2,2.5,3),9)
all<-cbind(s1,s2,sds)
R<-Nsimulation(S1=s1,S2=s2,Sds=sds,nSims=5)
But the result didnt update itself..Any comment please?
________________________________________
From: R-help <r-help-bounces at r-project.org> on behalf of tan sj <sj_style_1125 at outlook.com>
Sent: Monday, April 25, 2016 1:02 AM
To: r-help at r-project.org
Subject: [R] R: use switch or function in connecting different cases.
HI, I am trying to use switch () function to connect the three distribution (normal ,gamma with equal skewness and gamma with unequal skewness....
2016 Apr 05
0
R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]
...recording the results that you want
results[[(ss-1)*nssds+ssd_index]]<-<your_test>
ssd_index<-ssd_index+1
}
}
The list "results" should now contain the results of whatever test you
run. Be careful to get the order right.
Jim
On Tue, Apr 5, 2016 at 8:07 PM, tan sj <sj_style_1125 at outlook.com> wrote:
> hi, Jim,
> i am not very clear about yours idea.
> How can i able to test them under the combination of factors?
> I am now trying to do three for loops....but i am stucking ....
> Please, I need help ....
> ________________________________________
2016 Apr 16
1
R [loop statement ]
hi, i am new in this field.
I am now writing a code in robustness simulation study. I have written a brief code "for loop" for the factor (samples sizes d,std deviation ) , i wish to test them in gamma distribution with equal and unequal skewness, with the above for loop in a single code if possible. Can i ask is that any suitable loop statement for this situation.
This is my ideas
2016 Apr 25
2
R: use switch or function in connecting different cases.
HI, I am trying to use switch () function to connect the three distribution (normal ,gamma with equal skewness and gamma with unequal skewness.
But i am losing my ideas since i have
sample sizes-(10,10),(10,25),(25,25),(25,50),(25,100),50,25),(50,100), (100,25),(100,100)
standard deviation ratio- (1.00, 1.50, 2.00, 2.50, 3.00 and 3.50)
distribution of gamma distribution with unequal skewness
2016 Apr 17
2
R [coding : do not run for every row ]
i have combined all the variables in a matrix, and i wish to conduct a simulation row by row.
But i found out the code only works for the every first row after a cycle of nine samples.
But after check out the code, i don know where is my mistake...
can anyone pls help ....
#For gamma disribution with equal skewness 1.5
#to evaluate the same R function on many different sets of data
2016 Apr 05
5
R-dvel [robustness Simulation study of 2 sample test on several combination of factors ]
hi, i am new in this field.
do
favorite<http://stackoverflow.com/questions/36404707/simulation-study-of-2-sample-test-on-different-combination-of-factors#>
If I wish to conduct a simulation on the robustness of two sample test by using R language, is that any ways in writing the code?
There are several factors
(sample sizes-(10,10),(10,25),(25,25),(25,50),(25,100),50,25),(50,100),
2016 Apr 06
0
R simulation help pls
Hi, i am student from malaysia, i am new in r programming field, now i am trying to conduct a robustness study on 2 sample test under several combination of factors such as sample sizes ,standard deviation ratio and also distribution..
but now i am stucking in how to use for loop or apply function to conduct the simulation ?
Then how can i test the test in the combined combination of factors?
2016 Apr 08
0
[R ] help in if else in connect the simulation in normal and gamma distribution.
I am new in R. I have to conduct simulation study on the robustness of 2 sample tests on several combination of factors (sample sizes ,variance and distribution).
I have been completed write a code in normal distribution, and now i wish to add if -else in the code so that the code can simulated result for gamma distribution also.
But i am stucking again as how can i connect both of them by