similar to: [Fwd: OpenBUGS]

Displaying 20 results from an estimated 900 matches similar to: "[Fwd: OpenBUGS]"

2004 Oct 20
2
Odd behaviour with scale()
Moi! A student here has been getting a bit irritated with some side effects of scale() (OS is Windows XP, the behaviour occurs in R 2.0.0, but not 1.7.1). The problem is that she scales a variable in a data frame, then does a regression, and tries to get some predictions for some new data. However, at this point she gets an error (see the example below). This seems to be because the
2005 Aug 25
3
Converting characters to numbers in data frames
I'm sure I'm missing something obvious here, but I can't find the solution (including in the FAQ etc.). I have a vector of names of variables like this: NRes.x.y. where x and y are numbers. I want to extract these numbers as numbers to use elsewhere. I can extract the numbers as a list of characters using strsplit(), and convert that to a data frame, e.g.:
2009 Nov 12
1
Substituting vectors into a legend
I have a simple (!) problem. What I want to do is to create a legend with Greek letters, and substituting numbers into the legend. Like this: mu=1:3 Mean=rep(mu, each=20) plot(runif(60), rnorm(60,Mean,0.1), pch=Mean) # create a plot legend(0.6,1.7, paste("mu =", 1:3), pch=mu) but with a Greek letter mu. I think the solution has something to do with substitute() possibly along with
2004 Mar 19
2
Odd behaviour of step (and stepAIC)?
I can only assume I'm betraying my ignorance here, but this is not what I would expect. I'm getting the following from a stepwise selection (with both step and stepAIC): > step(lm(sqrt(Grids)~ SE + Edge + NH), scope=~ (Edge + SE + NH)^2) Start: AIC= 593.56 sqrt(Grids) ~ SE + Edge + NH Df Sum of Sq RSS AIC <none> 2147.0 593.6 + Edge:NH 1
2004 Dec 19
1
Different graph type can coexisti??
Please consider a data frame A B C D 1 4 5 0 2 3 2 75 3 4 1 84 4 5 1 90 5 3 0 100 Is there a way to plot column B and C as barplot *and* D as line on the same graph?? R-2.0.1 powered by Mandrake 10.1 ------------------------------------------------------------------------------------------------------------------------- Landini dr. Massimiliano Tel. mob. (+39) 347 140 11 94 Tel./Fax. (+39)
2004 Jul 24
3
Population simulation.
Hello, can anyone tell me if R has any special function for simulating the structure of human populations? Something like the genetic algorithm? I need to simulate a sample of a population with a specific structure. Is there something on R that can help me? Thanks to everyone. __________________________________________________________
2004 Mar 02
2
Problem with Integrate
The background: I'm trying to fit a Poisson-lognormal distrbutuion to some data. This is a way of modelling species abundances: N ~ Pois(lam) log(lam) ~ N(mu, sigma2) The number of individuals are Poisson distributed with an abundance drawn from a log-normal distrbution. To fit this to data, I need to integrate out lam. In principle, I can do it this way: PLN1 <- function(lam, Count,
2004 Feb 17
0
A log on Bayesian statistics, stochastic cost frontier, montecarl o markov chains, bayesian P-values
Dear friends, Over the past weeks, I have been asking a lot of questions about how to use R in Bayesian analysis. I am brand new to R, but I am very pleased with it. I started with winbugs but I found winbugs to be a limited software, not bad but has several limitations. By contrast, R allows the analyst to tackle any problem with a huge set of tools for any kind of analysis. I love R. In
2017 Sep 20
0
arguments imply differing number of rows
4000:6000 gives you 4000, 4001, ..., 6000. I suspect you want population= c(seq(4000, 6000, length=5), seq(3500, 4300, length=5), seq(3000, 3200, length=5)) Bob On 20 September 2017 at 17:07, Shivi Bhatia <shivipmp82 at gmail.com> wrote: > Hi Team, > > I using the syntax as: > > data.df<- data.frame( > city= c(rep(c("Delhi",
2004 Oct 31
2
(no subject)
Dear all, I have several questions regarding fisher.test() in R, and I'd highly appreciate any help with it. I have a group of observations, each having people's income, and an indicator of whether selected in or out a program. I want to test the difference between income of people who are in and out. Because the distribution is far from normal, I decide to use the fisher's exact
2004 Oct 31
2
(no subject)
Dear all, I have several questions regarding fisher.test() in R, and I'd highly appreciate any help with it. I have a group of observations, each having people's income, and an indicator of whether selected in or out a program. I want to test the difference between income of people who are in and out. Because the distribution is far from normal, I decide to use the fisher's exact
2011 Jan 13
1
Openbugs and rbugs on mac with wine
Hello list, I?ve been trying to get OpenBUGS running on my mac using the wine emulator. I can run Openbugs just fine by doing: wine ~/OpenBUGS312/OpenBUGS.exe In the terminal, so OpenBUGS works. When I try to run the schools example using rbugs(), the OpenBUGS process starts in wine, but it just sits there, no log, no script, no output of any sort. The rbugs () call makes the init,
2011 Jun 27
0
OpenBUGS and glmmBUGS package
Dear All, I am trying to use the glmmBUGS package with OpenBUGS under Linux. Here is a short list of code I modified from the diseasemapping package document: ---------------------------------------- library(diseasemapping) data(popdata) data(casedata) model = getRates(casedata, popdata, ~age*sex, breaks=seq(0, 90, by=10) ) ontario = getSMR(popdata,model, casedata) spplot(ontario,
2011 Oct 20
1
Are they fully identical: WinBUGS and OpenBUGS; R2WinBUGS and R2OpenBUGS
Hello ALL! I am running Linux, Fedora 15 64-bits, and R on it. I need to use WinBUGS and R2WinBUGS, but as far as I read, WinBUGS is closed project, to be continued with/as OpenBUGS. Thus, I have found R2OpenBUGS on OpenBUGS Contributed Code (http://openbugs.info/w/UserContributedCode), not on CRAN. Author(s) states that it is equivalent for R2WinBUGS. I tried briefly, and realized few minor
2009 Oct 06
2
R, Coda, and OpenBUGS
Hi All, I am trying to figure out how to use R-Coda with the output from OpenBugs. I have installed and loaded the packages BRugs and R2WinBUGS. I have successfully run a simple Bayes model in WinBUGS using R2WinBUGS' "bugs" and have used "read.bugs" to build the coda object. I can successfully switch to OpenBugs and run the same model and get the basic summary
2004 Jan 26
0
isolinux 2.08: screen garbage when loading kernel?
I'm using the RIP Linux mini rescue distribution. http://www.tux.org/pub/people/kent-robotti/looplinux/rip/ I have modified v. 7.0 for usage on our 32 node Tyan Tiger MPX Linux cluster with a serial console. Because of a bug with Grub on this motherboard when running headless and using a serial console I use the optional Isolinux version 2.08 also included with RIP Linux to boot from a
2007 Aug 06
2
Makefile for embedding OpenBUGS in R package
Dear list, I'm trying to embed OpenBUGS in an R package for use of it on 64-bit Linux. In order to get the CLI working one has to compile C code contained in $OpenBUGS/Manuals/CBugs.html (copied to say CBugs.c) using gcc -m32 -o bugs CBugs.c -ldl I put the OpenBUGS distribution in the ./inst subdirectory of the package root. Where should I now put the CBugs.c and how
2012 Jan 05
0
The BRugs 0.7-4 interface to OpenBUGS released
After so many questions and a considerable delay (almost entirely my fault), the BRugs package version 0.7-4 has been released yesterday. The BRugs package is available from CRAN master already as source and in binary form for Windows and will be synced by the mirrors shortly. Note the following changes (more details in the NEWS file): BRugs works on Linux now BRugs now supports 64-bit R on
2012 Jan 05
0
The BRugs 0.7-4 interface to OpenBUGS released
After so many questions and a considerable delay (almost entirely my fault), the BRugs package version 0.7-4 has been released yesterday. The BRugs package is available from CRAN master already as source and in binary form for Windows and will be synced by the mirrors shortly. Note the following changes (more details in the NEWS file): BRugs works on Linux now BRugs now supports 64-bit R on
2017 Nov 25
0
Cannot start OpenBUGS from R2WinBugs
Hello, I'm running R version 3.4.2 on Windows. I have a program written in BUGS which I can successfully run from the R2WinBUGS package. I would also like to try and use the same package to use OpenBUGS (version 3.2.3) rather than WinBUGS. The initial output looks ok (shown below), but the OpenBUGS executable is never started. Instead I see a process running called ?BugsHelper.exe *32? in