[R] R2WinBUGS not working?

2009-11-03 Thread Paul Heinrich Dietrich
This weekend I noticed that my R2WinBUGS connection was no longer working on my Windows computer at work AND my Ubuntu linux computer at home. As soon as WinBUGS opens, the message reads Index Out Of Range. I have un-installed and re-installed R on both computers and the problem remains the

[R] Spatio-Temporal Models in the ramps package

2009-08-27 Thread Paul Heinrich Dietrich
The ramps package looks very appealing. I have run the examples in the package .pdf and gone through the .pdf article at the Journal of Statistical Software, and am very impressed. Is it possible to see a spatio-temporal example in R script as well? Thanks. -- View this message in context:

Re: [R] How to use your own data in gstat and sp?

2009-08-18 Thread Paul Heinrich Dietrich
list. Paul Heinrich Dietrich wrote: This seems pretty basic, but I can't get any data to work except for the documented examples. When the goal is to get to SpatialPixels, here is what I see... x - runif(10,1,10) y - runif(10,1,10) z - rnorm(10,0,1) MyData - as.data.frame(cbind(x,y

[R] How to Dedup a Spatial Points Data Set

2009-08-18 Thread Paul Heinrich Dietrich
I'm new to spatial analysis and am exploring numerous packages, mostly enjoying sp, gstat, and spBayes. Is there a function that allows the user to dedup a data set with multiple values at the same coordinates and replace those duplicated values with the mean at those coordinates? I've written

[R] How to use your own data in gstat and sp?

2009-08-16 Thread Paul Heinrich Dietrich
This seems pretty basic, but I can't get any data to work except for the documented examples. When the goal is to get to SpatialPixels, here is what I see... x - runif(10,1,10) y - runif(10,1,10) z - rnorm(10,0,1) MyData - as.data.frame(cbind(x,y,z)) library(gstat) coordinates(MyData) -

Re: [R] Cream Text Editor

2009-05-24 Thread Paul Heinrich Dietrich
. Please write, to me if you find bugs in the plugin. Jakson JiHO wrote: On 2009-May-23 , at 17:40 , Paul Heinrich Dietrich wrote: I'm interested in easing my way into learning VIM by first using the Cream text editor, liking the idea that it will work on both my Linux and Windows

[R] Cream Text Editor

2009-05-23 Thread Paul Heinrich Dietrich
I'm interested in easing my way into learning VIM by first using the Cream text editor, liking the idea that it will work on both my Linux and Windows computers. I've installed Cream on my Linux machine, but can't figure out how to make Cream talk to R? Does anybody know? I'm using Ubuntu if

Re: [R] Partial Derivatives in R

2009-05-12 Thread Paul Heinrich Dietrich
here to test that. Hope this helps. Spencer Graves Paul Heinrich Dietrich wrote: Hi Spencer, Thanks for suggesting the genD function. In attempting it, I have rearranged my function from phat1 ~ ... to ... - 1, it apparently doesn't like the first one

Re: [R] Function recommendation for this study...

2009-05-11 Thread Paul Heinrich Dietrich
try and find a ref to get you started. Murray M Cooper, Ph.D. Richland Statistics 9800 N 24th St Richland, MI, USA 49083 Mail: richs...@earthlink.net - Original Message - From: Paul Heinrich Dietrich paul.heinrich.dietr...@gmail.com To: r-help@r-project.org Sent: Sunday, May 10

Re: [R] Partial Derivatives in R

2009-05-11 Thread Paul Heinrich Dietrich
-Forge.R-project.org;)' also supports the following: pd. - unionRSiteSearch(pd, pds) attr(pd., 'hits')# 94 HTML(pd.) Hope this helps. Spencer Graves Paul Heinrich Dietrich wrote: Quick question: Which function do you use to calculate partial derivatives from

[R] Function recommendation for this study...

2009-05-10 Thread Paul Heinrich Dietrich
Hi, I'm not used to thinking along these lines, and wanted to ask your advice: Suppose you have a sample of around 100, consisting of patients according to doctors, in which patients and doctors are given a questionnaire with categorical responses. Each patient somehow has roughly 3 doctors, or

[R] Partial Derivatives in R

2009-05-10 Thread Paul Heinrich Dietrich
Quick question: Which function do you use to calculate partial derivatives from a model equation? I've looked at deriv(), but think it gives derivatives, not partial derivatives. Of course my equation isn't this simple, but as an example, I'm looking for something that let's you control

Re: [R] Partial Derivatives in R

2009-05-10 Thread Paul Heinrich Dietrich
Thank you for suggesting other functions, I will look into them. When I read the deriv() function, it did mention partial, but I (being a newbie) wasn't able to get partials for a simple MNL equation. I'm sure I did something wrong then, but here's what I tried the following and got different

[R] Partial Derivatives in logit

2009-04-16 Thread Paul Heinrich Dietrich
Hi, I'm trying to figure out how to have R estimate partial derivatives for logit models. As an example, I'm providing a (fake) scored observation in a MNL with 3 categories of Y and 2 predictors (x01 and x02), and show the right way to calculate it, but am looking for how to use an R function,

[R] xyplot color question

2009-03-02 Thread Paul Heinrich Dietrich
Hi, I am plotting scatterplots of horsepower by torque, conditional on brand (I'm just making up the variables for this example), and the goal is to see both the scatterplot points as well as the smoothed line. When I do the following code, I get the same color for the points and line, and would

Re: [R] incomplete data analysis

2009-02-23 Thread Paul Heinrich Dietrich
I like the mi package, or when it's too large I use the Amelia package. evrim akar wrote: Dear R users, First of all, thank you for your help about goodness of fit tests. I have another set of data and i am sure it is incomplete. I searched for incomplete data analysis with R but I

Re: [R] How to connect R and WinBUGS/OpenBUGS/LinBUGS in Linux in Feb. 2009

2009-02-21 Thread Paul Heinrich Dietrich
I just wanted to post in conclusion to this thread that I have had success running WinBUGS from R via R2WinBUGS, with the help of Gorjanc, Uwe, and Ben by email outside of this thread. I may have had a permissions problem, that was probably corrected by entering this in the terminal:

Re: [R] How to connect R and WinBUGS/OpenBUGS/LinBUGS in Linux in Feb. 2009

2009-02-19 Thread Paul Heinrich Dietrich
. The wine version is 1.1.9. I thought that was the latest,but when I checked latest is 1.1.15, which does indeed throw the blackbox error. So, now it does not work for me either Sorry I gave bad advise kees On Thu, 19 Feb 2009 01:38:15 +0100, Paul Heinrich Dietrich paul.heinrich.dietr

Re: [R] How to connect R and WinBUGS/OpenBUGS/LinBUGS in Linux in Feb. 2009

2009-02-18 Thread Paul Heinrich Dietrich
Tobias, this looks great! I'm new to Linux, and I've only installed packages from within R with install.packages(). I'm guessing that I should unzip ROpenBUGS to the following path: /usr/local/lib/R/site-library/ ...just checking because I'm new and don't want to do it wrong. Thanks. PS

Re: [R] How to connect R and WinBUGS/OpenBUGS/LinBUGS in Linux in Feb. 2009

2009-02-18 Thread Paul Heinrich Dietrich
winbugs. I assume you first tried without specifying directories? The directories you use do not work for me, with WINEPATH the culprit. If you do not have the latest wine I advise to upgrade not specify directories. Good luck, Kees On Wed, 18 Feb 2009 01:27:18 +0100, Paul Heinrich

[R] How to connect R and WinBUGS/OpenBUGS/LinBUGS in Linux in Feb. 2009

2009-02-17 Thread Paul Heinrich Dietrich
Hi all, I've managed to get JAGS working on my Ubuntu Hardy Linux with a 32-bit computer and AMD processors using R 2.8.1. JAGS is great. I've read that JAGS is the fastest, but that hasn't been my experience. At any rate, I have more experience with WinBUGS under Windows and would like a

Re: [R] How to connect R and WinBUGS/OpenBUGS/LinBUGS in Linux in Feb. 2009

2009-02-17 Thread Paul Heinrich Dietrich
Hi Uwe, Thank you for your guidance. I have installed R2WinBUGS and WinBUGS14 under wine. Using ?bugs for help, it tells me: useWINE: logical; attempt to use the Wine emulator to run 'WinBUGS', defaults to 'FALSE' on Windows, and 'TRUE' otherwise. Not available in S-PLUS. WINE: character,

Re: [R] Optimizing Multiple Models...any suggestions?

2009-02-13 Thread Paul Heinrich Dietrich
Hi Max, Thanks for the suggestion, that's exactly what I was looking for. Thanks again. Paul -- View this message in context: http://www.nabble.com/Optimizing-Multiple-Models...any-suggestions--tp21979556p22006494.html Sent from the R help mailing list archive at Nabble.com.

[R] Optimizing Multiple Models...any suggestions?

2009-02-12 Thread Paul Heinrich Dietrich
There are multiple marketing models in place to predict individual-level probabilities of whether or not someone would respond to a solicitation, whether or not they would become a customer, and if they did become a customer, how much money the company is likely to make. Each individual receives

Re: [R] Error installing rjags in Ubuntu Linux

2009-02-09 Thread Paul Heinrich Dietrich
thanks to all. Frank E Harrell Jr wrote: Paul Heinrich Dietrich wrote: Hi Frank, Thanks for the suggestion. It looks like that is an excellent way to install JAGS. I've also been successful with installing JAGS, but cannot get the rjags package to install, so I can call JAGS from R. Any

Re: [R] Problems installing/updating packages in Linux

2009-02-08 Thread Paul Heinrich Dietrich
Thanks for the replies, they are helping. I downloaded the recommended manual, and I'm sure that will help too. When I installed R, I did not (previously) obtain the R-2.8.1.tar.gz, but tried to follow some instructions I found elsewhere online (which apparently weren't right). I did have the

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
I've read some of R's literature on Linux, including the R Admin manual, and didn't find it very useful, which is probably my own limitation. But I did finally manage to get it working well. I'm posting this to help others. The following worked when installing R 2.8.1 on Ubuntu 8.04 Hardy

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
I've read some of R's literature on Linux, including the R Admin manual, and didn't find it very useful, which is probably my own limitation. But I did finally manage to get it working well. I'm posting this to help others. The following worked when installing R 2.8.1 on Ubuntu 8.04 Hardy

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
I would really like to see a good introduction to Emacs, and will check out that link. I know that Emacs and ESS are supposed to be the best, and are the most customizable. The reason I put the R Commander GUI instead of Emacs/ESS is because in my first attempt to get R on Ubuntu Linux, I did

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
Amendment/Question #1: When I update.packages(), it tells me that rgl fails to update because it can't find X11. Again, I'm pretty new to Ubuntu, but it looks like X comes with Ubuntu. I see files under /etc/X11. Does this mean I need to download x11-common (or x11-apps, or x11-utils, or one

[R] Error installing rjags in Ubuntu Linux

2009-02-08 Thread Paul Heinrich Dietrich
Hi, Here is a step-by-step guide to exactly how I've installed R in Ubuntu: http://www.nabble.com/installing-R-on-Ubuntu-td10025949.html#a21894865 Regarding rjags, here is what happened: This webpage (http://yusung.blogspot.com/2009/01/install-jags-and-rjags-in-fedora.html) recommends logging

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
Hi Dirk, Sorry, I'm not trying to drag out the installation process here, but just trying to get it to work right in Linux. Dirk Eddelbuettel wrote: What is wrong with $ sudo apt-get install r-cran-rgl I tried this suggestion, and here was the terminal output: r-cran-rgl is

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
I'm definitely out of my league here, but I think that if someone only enters that code in an Ubuntu system, then they will have only the latest version of R in Ubuntu, which at this time I think is 2.6.2, instead of 2.8.1, and Ubuntu only maintains a handful of packages, instead of 1600+ right

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
Thanks John, I appreciate it. It sounds like Emacs is the way to go for an editor. John Fox-6 wrote: Dear Paul, I haven't read everything in this thread, but have a couple of comments relative to using the R Commander: ... The R Commander isn't meant to be a serious programming

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
Hi Dirk, Many thanks for your insight. Dirk Eddelbuettel wrote: Paul, Very nice! Comments below. On 7 February 2009 at 17:12, Paul Heinrich Dietrich wrote: | | I've read some of R's literature on Linux, including the R Admin manual, and | didn't find it very useful, which

Re: [R] Error installing rjags in Ubuntu Linux

2009-02-08 Thread Paul Heinrich Dietrich
if this helps:http://biostat.mc.vanderbilt.edu/JAGSInstallExample Improvements to this approach are welcomed. Frank Paul Heinrich Dietrich wrote: Hi, Here is a step-by-step guide to exactly how I've installed R in Ubuntu: http://www.nabble.com/installing-R-on-Ubuntu-td10025949.html#a21894865

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
Hi Brian, I'm sure buttons are slow compared to keystrokes, but how do you stop R with a keystroke, similar to the R interface in Windows? Thanks. Sorry about the JGS-JGR goof...just coming across too many new things right now. JGR it is. -- View this message in context:

Re: [R] installing R on Ubuntu

2009-02-08 Thread Paul Heinrich Dietrich
Thanks Dirk, it worked like a charm :) Dirk Eddelbuettel wrote: On 8 February 2009 at 12:14, Paul Heinrich Dietrich wrote: | Hi Dirk, | Sorry, I'm not trying to drag out the installation process here, but just | trying to get it to work right in Linux. | | | Dirk Eddelbuettel

[R] Problems installing/updating packages in Linux

2009-02-07 Thread Paul Heinrich Dietrich
Hi all, I feel very comfortable with R in Windows, and am trying to switch over to Linux. I have R 2.8.1 on Linux and it works great (so far), except for instalilng/updating packages. For example, using Emacs with ESS as a text editor, I entered: update.packages() Here are some error