Displaying 17 results from an estimated 17 matches for "dbins".
Did you mean:
bins
2007 May 14
1
Hierarchical models in R
Is there a way to do hierarchical (bayesian) logistic regression in R, the
way we do it in BUGS? For example in BUGS we can have this model:
model
{for(i in 1:N) {
y[i] ~ dbin(p[i],n[i])
logit(p[i]) <- beta0+beta1*x1[i]+beta2*x2[i]+beta3*x3[i]
}
sd ~ dunif(0,10)
tau <- pow(sd, -2)
beta0 ~ dnorm(0,0.1)
beta1 ~ dnorm(0,tau)
beta2 ~ dnorm(0,tau)
beta3 ~
2008 Dec 09
1
expected variable name error pos 98349 WInBUGS in R
> I am using a random intercept model with SITEID as random and NAUSEA as
> outcome.
>
> I tried using a dataset without missing values and changed my model
> statement accordingly but still get the same error. Follwoing in an excerpt.
> > anal.data <- read.table("nausea.txt", header=T, sep="\t")
> > list(names(anal.data))
> [[1]]
> [1]
2009 Jan 08
1
Alignment of image plot overlay
...end line begins about an inch into the image plot x-axis and ends
about an inch off of end of the image plot. Once I have the alignment
sorted, I need to put a secondary y-axis on the image plot which is scaled
for the trend line. An example plot is attached. My code follows.
tad.image(ptt.tad, dbins, interp=T, loess.interp=F, ylim=c(300,1),
main="STM07.4", zlim=c(0,1))
axis(4, at=c(1,2,3,4), labels=c(1,2,3,4), tick=T, las=1)
par(new=T)
plot(x=stm$dal, y=stm$model, ann=F, axes=F, type="l", col="black", lwd=2)
Ideas involving the use of par(usr=c(,,,)) haven'...
2008 Dec 07
1
Reading txt file in R
Hi:
I am using the following code to read a data set in txt in R and using the follwoing model. But it seems to give me an error ' expected variable name error pos 134022'. Any help is greatly appreciated.
Code:
anal.data <- read.table("nausea.txt", header=T, sep="\t")
list(names(anal.data))
attach(anal.data)
n.samples <- dim(anal.data) [1] # number of data
2005 Jul 27
1
error message running R2WinBUGS
*Dear R-user,
*
I try to run Winbugs from R using bugs function in R2WinBUGS.My model works
well in Winbugs except that I can't get DIC. Since I don't need DIC, when I
try to run Winbugs from R , I set "DIC=FALSE". My model is as following:
model {
for (i in 1:N) {
for(j in 1 : T ) {
x[i, j] ~ dbin(p[i, j],n[i])
#Hier.prior
p[i, j] ~ dbeta(alpha[i, j], beta[i, j])
alpha[i, j]
2011 Aug 11
1
R crashes when communicating with JAGS
There is a thread on this topic already:
http://finzi.psych.upenn.edu/Rhelp10/2010-August/250934.html
I'm rather mystified by a similar problem and wondering whether I've
overlooked something obvious. I'm running with latest versions of R and
all packages, and latest version of JAGS running under Windows 7.
Here's the problem. I have some source code. It's given below -
2008 Dec 08
1
Reading txt file in R to run Random Intercept Model
I am using a random intercept model with SITEID as random and NAUSEA as
outcome.
Thanks.
Anamika
I tried using a dataset without missing values and changed my model
statement accordingly but still get the same error. Follwoing in an excerpt.
> anal.data <- read.table("nausea.txt", header=T, sep="\t")
> list(names(anal.data))
[[1]]
[1] "SITEID"
2003 Dec 30
0
no Profiles created at logon
Hi
I'm using a linux 8.2 box with samba 2.2.5 as PDC with only one client
pc (win xp) with 2 accounts. Logon, logon script, homedrive and browse
shares are working, but when I logon windows show a message which tells
that to profile of the server has not the correct permissions.., but
there is no profile is just the emty directory. And then a second error
that no profile was found local
2013 Jun 24
0
Running MCMC using R2WinBUGS
Hi All:
Not sure why my previous question never got posted. Here I am seeking some
help on my code. I am using the following code to run MCMC simulation on
the following data using the model below:
# Data
matrix<-NULL
> csvs<-paste("MVN", 1:2,".csv",sep="")
> for (i in 1:length(csvs)){
+ matrix[[i]]<- read.csv(file=csvs[i],header=TRUE)
+
2012 Oct 26
1
Openbugs- Array Index
Hi,
I'm working on the codes below however every time I run them when they get
to OpenBUGS I keep getting the error message: array index is greater than
array upper bound for hab.
Any help would be greatly appreciated,
Suzie
Codes:
ungulate <- read.csv(file.choose ()) #ungulate
ungulate <-
as.matrix(ungulate);colnames(ungulate)<-NULL;rownames(ungulate)<-NULL
2011 May 27
1
Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2 and 2.13.0 (crashes R GUI)
I've run into persistent problems with OpenBUGS crashing when using BRugs .53 and .71, and am hoping someone has suggestions. There is obviously something unusual going on in my environment, but I'm at a loss as to where to begin to try to solve it.
In a nutshell, what happens is that, as soon as I call "modelCheck()" in BRugs, it gets an error or crashes ... but only some of
2007 Jul 12
0
No subject
...is where I do the insert)
>
> exten => valid_login,1,NoOp()
> exten => valid_login,n,Set(CALLDATE=${STRFTIME(${EPOCH},GMT+5,%x %X)})
> exten => valid_login,n,Set(CLID=${CALLERID(num)})
> exten => valid_login,n,Set(UNID=${CDR(uniqueid)})
> exten => valid_login,n,Set(DBINS =
> ${ODBC_DISA(${CALLDATE},${CLID},${ID_ENTERED},${UNID})})
> exten =>
> valid_login,n,Playback(/var/lib/asterisk/sounds/custom/disa_greet3)
> exten => valid_login,n,DISA("no-password",from-disa,"XXXXXXX"
> <614xxxxxxxx>)
> exten => valid_login,...
2010 Aug 10
0
Error in R2Bugs
Hello,
I am running a GLMM using R2Bugs, but am getting the below error message. I am including the entire output, although the 2nd and 3rd lines seem to indicate the problem. Note that I do define N (it is an integer) and send it to a datalist (see the R commands and model below). Interestingly, when I put all of this into OpenBugs directly, the model runs. I do have reasons, however, that I
1997 Jul 18
2
MMap failed with code 22
We have been using samba since 1995 and have found it superb, Thanks to
all. Recently
I built Samba1.19.17alpha4 on a DECstation 5000 running Ultrix 4.4 and
included -DFAST_SHARE_MODES
This results in
UIST>smbclient -L UIST
Session request failed (0,0) with myname=UIST destname=UIST
Unspecified error 0x0
Your server software is being unfriendly
and
ERROR
2008 Dec 19
5
Authorize & Microsoft SQL
Hello Everyone,
I have an installation where the client has a Microsoft SQL database that holds all of their case information. They would like the asterisk system to require users to enter a valid case number when making an outgoing call. I?m seeing some documentation regarding people using Microsoft SQL for CDR storage, however nothing regarding validating authentication using a Microsoft SQL
2010 Nov 15
2
Zero truncated Poisson distribution & R2WinBUGS
I am using a binomial mixture model to estimate abundance (N) and
detection probability (p) using simulated count data:
-Each site has a simulated abundance that follow a Poisson
distribution with lambda = 5
-There are 200 simulated sampled sites
-3 repeated counts at each site
- only 50 percent of the animals are counted during each count (i.e,
detection probability p =0.5, see codes)
We removed
2012 Jul 13
3
Help with R2 OpenBUGs
Hi, I'm currently working on the below codes however whenever I run it in
openbugs it gives an error message saying: unknown type of logical function
error pos 76. Any help would be appreciated.
## bugs code
library(R2OpenBUGS)
sink("C:/Users/CCF/Documents/Suzie Work/PTY Project/Waterhole
Correction/ungulate.txt")
cat("
model{
# hyperparameters
# habitat effects for each