Is this a question from your homework?
Contact
Details:---
Contact me: tal.gal...@gmail.com | 972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
yes!!
I join group study that study R-programming...
so I really tried..only to fail and made many erros..
I really don't know
how to perform this...
--
View this message in context:
http://r.789695.n4.nabble.com/hi-l-have-a-question-please-help-me-tp2307569p2308091.html
Sent from the R
Then please read this:
http://www.r-project.org/posting-guide.html
*Basic statistics and classroom homework:* R-help is not intended for these.
If you want learning materials for R you can check out:
http://stats.stackexchange.com/questions/138/resources-for-learning-r
And:
hey!!!
this is not classroom homework!!
To do main programming,
I find some good training problems in paper...
I tried to do that...but failed
so please help me
Nobody help me...I relly don't know how to perform this...
If you solve this probelm,I will study your work to solve main
1)
dmatrix1-function(n,p,rho,sigma,k){
muvec1=zeros(1,p)
truep-as.matrix(c(3,1.5,0,0,2,0,0,0))
A=eye(p)
for(i in 1:p){
for(j in 1:p){
A[i,j]=rho^(abs(i-j))
X=mvrnorm(n,muvec1,A)
y=X%*%truep+as.matrix(rnorm(n,0,sigma))
Y=X[1:k,]
w=y[1:k]
Z=X[(k+1):n,]
5 matches
Mail list logo