Re: [R] Using !is.na() in a HAVING clause in sqldf() XXXX

2012-01-17 Thread Joseph Magagnoli
Did you try a where statement? where Premie is not null On Tue, Jan 17, 2012 at 3:03 PM, Dan Abner dan.abne...@gmail.com wrote: Hi everyone, I have the following: sqldf(select Premie,count(tpounds) N,avg(tpounds) Avg_Weight, stddev_samp(tpounds) StdDev from children group by Premie

Re: [R] Problem loading rJava...

2011-08-15 Thread Joseph Magagnoli
Brian, I believe I had a similar problem. Make sure you have JDK (*sun-java6-jdk) * installed as well. Here is a link to a JDK install guide http://www.cyberciti.biz/faq/howto-ubuntu-linux-install-configure-jdk-jre/ On Mon, Aug 15, 2011 at 10:18 AM, Brian Lunergan ff...@ncf.ca wrote: Morning

[R] [R} R install on Unix Server

2011-01-31 Thread Joseph Magagnoli
Hi all, I am hoping to get R installed configured at work, on an HP-Unix server. R was installed but was not configured correctly because we do not have a Fortran compiler for HP unix. The IT guys sent me an email with some questions that I hope to get some help in anwsering. We need the

Re: [R] Linux Editor

2010-08-02 Thread Joseph Magagnoli
In addition, there is SciViews for Komodo edit http://www.sciviews.org/SciViews-K/ Joe On Mon, Aug 2, 2010 at 10:35 AM, alphaace rsa...@comcast.net wrote: Hi Everyone, I recently have started using R again on a Linux box after spending several years on a Mac. Last I checked, the best way

Re: [R] Book on R's Programming Language

2010-07-24 Thread Joseph Magagnoli
Matt, you might want to check out programming with data by John Chambers. http://www.amazon.com/Programming-Data-Guide-S-Language/dp/0387985034/ref=sr_1_1?ie=UTF8s=booksqid=1279990404sr=8-1 Best Joe On Sat, Jul 24, 2010 at 11:39 AM, Matt Stati mattst...@yahoo.com wrote: Can someone please

Re: [R] R on Linux - a primer

2010-03-15 Thread Joseph Magagnoli
I would have to agree with Mike Miller. As a novice to both R and Linux I choose to use Ubuntu. The substantial amount of help guides and forums really made the transition easier and will save some frustration. Once you get used to linux you can always try a different distribution later, if you

Re: [R] Stata and R user GLM method

2010-01-22 Thread Joseph Magagnoli
Jean-Baptiste The most immediate difference I see is that you use a logit link in the R code but a probit link function in the stata code. Joe On Fri, Jan 22, 2010 at 8:25 AM, Jean-Baptiste Combes jbcom...@laposte.netwrote: Hello people, I am in the process of migrating from Stata to R and I

[R] reshaping data

2009-11-24 Thread Joseph Magagnoli
Hi all, I have a dataframe that has one observation per case. for example: CaseStartyear Endyear A 1979 1989 B 1950 1955 I would like to create a dataframe in which each case has multiple observations corresponding to the start and end

[R] kaplan-meier error

2009-07-21 Thread Joseph Magagnoli
Hi all, I am getting an error in my code and I don't know what the problem is. I am using R 2.9 on ubuntu. my code is as follows: ## Libraries ## library(survival) library(foreign) ## reading data ## data-read.dta(http://psfaculty.ucdavis.edu/bsjjones/cabinet.dta;) head(data) attach(data)

[R] Generating a count variable

2009-06-01 Thread Joseph Magagnoli
Dear All, I am practicing data manipulation and I would like to generarte a count variable. My data looks like this: Country MID 1 NA 10 10 11 10 20 21 2

[R] arma model with garch errors

2009-04-29 Thread Joseph Magagnoli
Dear R experts, I am trying to estimate an ARMA 2,2 model with garch errors. I used the following code on R 2.9. #library library(fGarch) #data data1-ts(read.table(C:/Users/falcon/Desktop/Time Series/exports/goods1.csv), start=c(1992,1), frequency=12) head(data1) #garch garchFit(formula.mean=

[R] [R} seasonal differencing

2009-04-02 Thread Joseph Magagnoli
Hi all, I was wondering how to construct a seasonal differenced time series variable. I used the following code to construct a 12 span seasonal difference seasonal-diff(V2, lag=12, differences=1) is this correct? thank you in advance joe [[alternative HTML version deleted]]

Re: [R] installing R on Ubuntu

2009-02-08 Thread Joseph Magagnoli
When I use ubuntu linux and R I use komodo edit with an R extension. Seems really similar to tinn-R. http://www.sciviews.org/SciViews-K/index.html joe On Sun, Feb 8, 2009 at 8:56 AM, Paul Heinrich Dietrich paul.heinrich.dietr...@gmail.com wrote: Amendment/Question #1: When I

[R] glm package

2009-02-06 Thread Joseph Magagnoli
Hi all, can the glm package be used to estimate a logit model to panel data? I am asking this because stata has a standard logit model and then an xtlogit for longitudinal data. Is there something similar in R? Thank you jcm [[alternative HTML version deleted]]

Re: [R] Dynamic random effects model

2009-01-29 Thread Joseph Magagnoli
...@ufl.edu wrote: Joseph Magagnoli jcm331 at gmail.com writes: All R experts, How do I fit a dynamic Random effects model with a binary dependent variable in R Thanks JCM You haven't given us nearly enough information to go on. If you're talking about something like a state-space model

[R] Dynamic random effects model

2009-01-28 Thread Joseph Magagnoli
All R experts, How do I fit a dynamic Random effects model with a binary dependent variable in R Thanks JCM [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] log likelihood

2008-11-21 Thread Joseph Magagnoli
Hi all, I ran a Weibull model, and I am wondering if there is any way to extract the log likelihood. I tried loglik(model) but it does not seem to work any help would be greatly appreciated joe [[alternative HTML version deleted]] __

[R] log likelihood

2008-11-21 Thread Joseph Magagnoli
Hi all, I ran a Weibull model, and I am wondering if there is any way to extract the log likelihood. I tried loglik(model) but it does not seem to work any help would be greatly appreciated joe [[alternative HTML version deleted]] __

[R] negative binomial predicted probabilities

2008-11-07 Thread Joseph Magagnoli
I estimated a negative binomial model using zelig. z.out- zelig(NEWBHC~ PW80 + CHNGBLK + XBLK,data=data, model=negbin) How do I calculate predicted probabilities for this model? Is it the same process as a poisson regression? Thanks in advance Joe [[alternative HTML version deleted]]