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,]
z=y
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 hel
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 pro
If
xj=Z1+0.1e j=1,2,315
Z1~N(0,1) e~iid N(0,1)
Z1 and e independent...
In this model xj has pairwise correlation 0.99
Is it true??
If true..how to generate xj?
please give me answer!
--
View this message in context:
http://r.789695.n4.nabble.com/hi-please-help-me-tp2308631p2308631.html
hi!! imade many codes during these days..
I study Statistics
please one more question!!
ex1<-function(n,p,rho){
muvec1=zeros(1,p)
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)}}
return(X)
}
this code generates design matrix in linare regr
I made some matlab codes...
Is there any method to perform matlab codes in R program??
--
View this message in context:
http://r.789695.n4.nabble.com/hi-guestion-tp2311219p2311219.html
Sent from the R help mailing list archive at Nabble.com.
__
R-hel
I made some design matrix X(in linear regression model)
I there any method to normalize X?
--
View this message in context:
http://r.789695.n4.nabble.com/question-tp2312938p2312938.html
Sent from the R help mailing list archive at Nabble.com.
__
R-he
I made some anonymous function which performs some process in matlab code..
But I want to perform it in R program...
Is there any method???
--
View this message in context:
http://r.789695.n4.nabble.com/hi-please-help-me-tp2315919p2315919.html
Sent from the R help mailing list archive at Nabble.
I found some amazing package called "lqa"
one question!!!
Can I use this package in linaer model(not GLM)?
--
View this message in context:
http://r.789695.n4.nabble.com/Hi-tp2321809p2321809.html
Sent from the R help mailing list archive at Nabble.com.
9 matches
Mail list logo