hey, my function doesn´t work. can somebody help me?
the graphic doesn´t work and also the function. thnx a lot.
N=10
n=100
p_0=c(1/5,1-1/5)
power = function(p,m) {
set.seed(1000)
H=matrix(0,nrow=N,ncol=1)
for(i in 1:N) {
x - matrix(rnorm(n, 0, 0.5), ncol = m)
y - matrix(rnorm(n, 0, 0.8),
hi, sorry but i can´t remove the problem.but i change the programm a little
bit. i didn´t work with r programm before, so its really hard for me to find
my problems. :)
N=5
n=100
p_0=c(1/5,1-1/5)
power = function(k1) {
set.seed(1000)
H=matrix(0,nrow=N,ncol=1)
for(i in 1:N) {
x -
i´m really sorry, once again. ok i will try to explain what i have to
programm. i want to programm a powerfunction.
i have to research if the correlations in a bivariate random sample are
homogeneous. for that i saperate the random sample in m blocks and
calculate the correlation of each
? i hope u
have still time to help me.
regards
jethi
--
View this message in context:
http://r.789695.n4.nabble.com/the-function-doesn-t-work-tp2714105p2714702.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org
at first only the first value. and then the first and the second
value of l. so its wrong. because of it i take a new two loops which make
exactly what i want.
regards
jethi
--
View this message in context:
http://r.789695.n4.nabble.com/the-function-doesn-t-work-tp2714105p2714755.html
Sent from the R
:N){
H[i]=log(m)-sum(p[,i]*log(p[,i]))
}
1-mean(q_1=H H =q_2)
regards
jethi
--
View this message in context:
http://r.789695.n4.nabble.com/the-function-doesn-t-work-tp2714105p2714815.html
Sent from the R help mailing list archive at Nabble.com.
__
R
wow thnx a lot josh. so now i understand the most of the things. so my power
function is depent on the number of the blocks m. how u said, if i take
m=0.8 or lower i get a different value than a 1. ofcourse a number between
0 or 1. but i can just take positive interger number for m, because m
)
}
dat - seq(0, 1, length.out = 10)
output - gute(x = dat, m = m, alpha = alpha)
return(output)
}
This results in:
myfun(100, 5)
Correlations between two random variables
-0.5887829 0.07042411 -0.06082638
0.2395193 -0.1038213
[1] 1
On Fri, Sep 24, 2010 at 5:26 PM, jethi [hidden email
)
return(output)
}
regards
jethi
--
View this message in context:
http://r.789695.n4.nabble.com/Power-Function-tp2631929p2713799.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
)
}
output - gute(a = l[,i])
return(output)
}
regards
jethi
--
View this message in context:
http://r.789695.n4.nabble.com/3D-plot-tp2713818p2713818.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https
hi steve, thnx for ur reply. but my problem is, that i have a matrix as a
functions value and as a result i get a single number. so how can i plot
this? and it would be nice if u read over my function, because i´m not sure
if it correct. anyway thnx
regards
jethi
--
View this message
hey, is there anybody who can help me? its very urgent because i have to
send my bachelor thesis on monday. pls help me
--
View this message in context:
http://r.789695.n4.nabble.com/3D-plot-tp2713818p2713909.html
Sent from the R help mailing list archive at Nabble.com.
Hi, at first, i´m from germany, so sorry for my bad english. but i need ur
help in R to programm a power function and to make at last a graphik of it.
i have already tried my best. but it doesn´t work.the topic is: the
homogeneity test of correlation based entropy.
so it means, that i have to
13 matches
Mail list logo