Displaying 5 results from an estimated 5 matches for "index3".
Did you mean:
index
2009 Aug 07
0
Bar plots with stacked columns marked with askterisks
...ertain criteria.
I've gotten the stacked bar plots with Data set A (please refer to
code below). However, I haven't figured how to put asterisks on
columns based on some extra information (such as "used/unused") as in
Data set B i.e. asterisks at the top of the Index1 and Index3 columns.
---- R code ----
title = 'frequency'
filename = 'testdata2.txt'
sample_output = 'sequences'
# read in data
my.data <- read.delim(filename, sep="\t")
# data from second column onward
my.dataM <- my.data[,2:ncol(my.data)]
# rownames in first column
r...
2006 Feb 08
0
bayesm, rmnlIndepMetrop
...R=10}
set.seed(66)
df=read.table("X_metrop.dat",header=TRUE)
inp=as.matrix(df)
y=as.numeric(inp[,1])
n=length(y)
p=4
nvar=ncol(X)
X=cbind(1,inp[,2:5])
XTXI=chol2inv(chol(crossprod(X)))
bhat=XTXI%*%t(X)%*%y
#create X matrix with dim nobs*p x nvar
index=1:n
index2=rep(index,p)
index3=sort(index2)
X=X[index3,]
beta=array(bhat,dim=c(nvar))
A=diag(c(rep(.01,length(beta))));
betabar=rep(0,length(beta))
Data=list(y=y,X=X,p=p);
Mcmc=list(R=R,keep=1) ;
Prior=list(A=A,betabar=betabar)
out=rmnlIndepMetrop(Data=Data,Prior=Prior,Mcmc=Mcmc)
Ouput:
Starting Independence Metropo...
2006 Nov 15
2
filling an array, vectorized
Hi,
I am sure this has come up before, but my searches of the archive
didn't give any results (maybe I didn't use the right keywords, but if
I use too many, the search times out).
I have a vector of dimensions n, length is not fixed, eg
n <- c(4,5,7)
or
n <- c(19,4,5,7)
and a function f that takes a vector of indices, same length of n, and
gives a scalar.
I would like to fill
2006 Jan 19
4
multiple database in the same actions?
Hi,
I read the example in
http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases,
it show us how to connect to other database, each time
we start a new action, however, this doesn''t work
while you try to connect to two different database
within the same action.
SO I wonder is it possible to bind to two or more
database within the same action????
Thanks you very much
Saiho
2011 Sep 02
0
No subject
...;div class=3D"line number3 index2 alt2"><code class=3D"sql keyword">CREATE<=
/code> <code class=3D"sql keyword">TRIGGER</code> <code class=3D"sql
plain">Test_Trigger </code></div>
<div class=3D"line number4 index3 alt1"><code class=3D"sql keyword">AFTER</=
code> <code class=3D"sql keyword">INSERT</code> <code class=3D"sql
keyword">ON</code> <code class=3D"sql plain">MyTable </code></div>
<div class=3D&quo...