Re: [R] accessing log likelihood of poison model

2004-04-18 Thread Renaud Lancelot
Eric Cheney wrote: On Sunday, 18 April 2004 at 0:52:19 +0200, Peter Dalgaard wrote: Eric Cheney [EMAIL PROTECTED] writes: Could someone tell me how to access the log likelihood of a poisson model? I've done the following BEGIN R STUFF freq.mod - glm(formula = nfix ~ gls.gls + pol.gls

Re: [R] Non-Linear Regression (Cobb-Douglas and C.E.S)

2004-04-18 Thread Mohammad Ehsanul Karim
Dear James Wettenhall, Your question - why do i need nonlinear regression for that model when it is linear after taking logs - is not a dumb question: rather it is a rational one. Actually C.E.S Production Function [ Y = GAMA * ((DELTA*K^(-BETA)) + ((1-DELTA)*L^(-BETA)))^(-PHI/BETA) ] is my

Re: [R] Non-Linear Regression (Cobb-Douglas and C.E.S)

2004-04-18 Thread Mohammad Ehsanul Karim
Dear Sundar Dorai-Raj, Thank you very much for mentioning to exponentiate ALPHA. However, so far i understand that the parameters in the non-linear equation Y = ALPHA * (L^(BETA1)) * (K^(BETA2)) and the coefficients of log(L) and log(K) of the following equation (after linearizing) log(Y) =

Re: [R] R-1.9.0: make error on slackware-current!

2004-04-18 Thread Timothy Tatar
It appears that the #If NeedFunctionPrototypes compiler directive has been removed from Xlib.h and Xutil.h in Xfree86 4.4. All the prototypes containing the offending _Xconst are now being processed. R 1.8.1, which built successfully under XFree86 4.3, fails under XFree86 4.4 with the same error

Re: [R] R-1.9.0: make error on slackware-current!

2004-04-18 Thread Prof Brian Ripley
On Sun, 18 Apr 2004, Timothy Tatar wrote: It appears that the #If NeedFunctionPrototypes compiler directive has been removed from Xlib.h and Xutil.h in Xfree86 4.4. All the prototypes containing the offending _Xconst are now being processed. R 1.8.1, which built successfully under XFree86

Re: [R] accessing log likelihood of poison model

2004-04-18 Thread Peter Dalgaard
Renaud Lancelot [EMAIL PROTECTED] writes: And that's great; but I need the log likelihood. Anyone know? The deviance will not suffice? sum(dpois(nfix, fitted(freq.mod), log.p=T)) should do the trick otherwise. Thank you, that did the trick. I should note that the method

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Prof Brian Ripley
The short answer is no, as there is no way to recover the fitted values and residuals so you can't get a proper fit object of class lm (and hence get `summaries and all'). Your pseudo-data method needs to fix the u_i to be mean zero, variance one in the sample. That is probably the quickest

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: The short answer is no, as there is no way to recover the fitted values and residuals so you can't get a proper fit object of class lm (and hence get `summaries and all'). Your pseudo-data method needs to fix the u_i to be mean zero, variance

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Ted Harding
Thanks, Brian! On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of coefficients, sums of squares, and relevant F ratios and P values. and

[R] multistratum glm?

2004-04-18 Thread Christophe Pallier
Hello, I routinely use aov and and the Error term to perform analyses of variance of experiments with 'within-subject' factors. I wonder whether a notion like 'multistratum models' exists for glm models when performing a logit analysis (without being 100% sure whether this would make sense).

Re: [R] Non-Linear Regression (Cobb-Douglas and C.E.S)

2004-04-18 Thread Sundar Dorai-Raj
Mohammad Ehsanul Karim wrote: Dear Sundar Dorai-Raj, Thank you very much for mentioning to exponentiate ALPHA. However, so far i understand that the parameters in the non-linear equation Y = ALPHA * (L^(BETA1)) * (K^(BETA2)) and the coefficients of log(L) and log(K) of the following equation

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Prof Brian Ripley
On Sun, 18 Apr 2004 [EMAIL PROTECTED] wrote: Thanks, Brian! On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of coefficients, sums of

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Peter Dalgaard
(Ted Harding) [EMAIL PROTECTED] writes: Thanks, Brian! On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of coefficients, sums of

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Ted Harding
On 18-Apr-04 Peter Dalgaard wrote: However, it begs the question whether it wouldn't have been better to design the RSS into the lm class rather than computing it from residuals in summary.lm and anova.lm and predict.lm and... Well, something like this though lay under my original query. The

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread kjetil
On 18 Apr 2004 at 2:27, Ted Harding wrote: Hi Folks, I am dealing with data which have been presented as at each x_i, mean m_i of the y-values at x_i, sd s_i of the y-values at x_i number n_i of the y-values at x_i and I want to linearly regress y on x.

Re: [R] lm with data=(means,sds,ns)

2004-04-18 Thread Ted Harding
On 18-Apr-04 Peter Dalgaard wrote: (Ted Harding) [EMAIL PROTECTED] writes: On 18-Apr-04 Prof Brian Ripley wrote: The short answer is no, as there is no way to recover the fitted values Well, the fitted values (a + b*x_i) would be available, as would be the estimates and SEs of

[R] 1.9.0 for Debian 'stable' - volunteer needed

2004-04-18 Thread Dirk Eddelbuettel
As Doug had reported, Debian packages for R 1.9.0 were uploaded last Monday. These are currently part of 'unstable', but can already be used on 'testing' into which they should migrate in a few days. Debian 'stable' is another matter. Neither Doug nor I has a stable system left that would be

Re: [R] Histogram ploting

2004-04-18 Thread Christophe Pallier
Hello Mateusz, The 'hist' function works on the raw data. In your data set example, you have already computed the number of data points in each bin. What you really want is probably a barplot of N You could display your data: plot(Class,N,'h') Or names(N)-Class barplot(N) Christophe Pallier

[R] outliers using Random Forest

2004-04-18 Thread Edgar Acuna
Hello, Does anybody know if the outscale option of randomForest yields the standarized version of the outlier measure for each case? or the results are only the raw values. Also I have notice that this measure presents very high variability. I mean if I repeat the experiment I am getting very

Re: [R] Histogram ploting

2004-04-18 Thread Mateusz oskot
Hi Christophe, On 4/18/2004 3:17 PM, Christophe Pallier wrote: The 'hist' function works on the raw data. In your data set example, you have already computed the number of data points in each bin. Yes, you are right. I evidently misunderstood the hist function usage described in manuals. What

RE: [R] outliers using Random Forest

2004-04-18 Thread Liaw, Andy
The thing to do is probably: 1. Use fairly large number of trees (e.g., 1000). 2. Run a few times and average the results. The reason for the instability is sort of two fold: 1. The random forest algorithm itself is based on randomization. That's why it's probably a good idea to have 500-1000

[R] Error in gam?

2004-04-18 Thread Hadley Wickham
I'm having some problems using variable names containing spaces (using backticks) with gam (mgcv 0.9-6, R 1.8.1). Some toy code to reproduce my problem is below. Am I doing something wrong, or should I pass this bug on to Simon Wood? (Or do I need to rename my variables to get rid of the

Re: [R] Error in gam?

2004-04-18 Thread Peter Dalgaard
Hadley Wickham [EMAIL PROTECTED] writes: I'm having some problems using variable names containing spaces (using backticks) with gam (mgcv 0.9-6, R 1.8.1). Some toy code to reproduce my problem is below. Am I doing something wrong, or should I pass this bug on to Simon Wood? (Or do I need to

Re: [R] Error in gam?

2004-04-18 Thread Prof Brian Ripley
On Mon, 19 Apr 2004, Hadley Wickham wrote: I'm having some problems using variable names containing spaces (using backticks) with gam (mgcv 0.9-6, R 1.8.1). Some toy code to reproduce my problem is below. Am I doing something wrong, or should I pass this bug on to Simon Wood? (Or do I

Re: [R] filled.contour

2004-04-18 Thread Paul Murrell
Hi jzhang10 wrote: Hi, I want to draw a level plot. The levels are not evenly spaced, so I did something like: levels=c(0,2,5,10,30,60). I still want the color bar (key) on the right side to be evenly spaced so that the small numbers (0,2,5) are not squeezed together. Does anyone know how to

[R] R on virtual server: problem with f2c

2004-04-18 Thread Marcello Verona
Hi I've a problem: I wont to install R on a virtual server without root privileges. I've tried to install in /usr/local/ but the fortran is not present. I've tried to install libf2c and in the ./configure now is ok, but the make crash. I don't know if my libf2c is right... Have a good link for

Re: [R] Non-Linear Regression (Cobb-Douglas and C.E.S)

2004-04-18 Thread Spencer Graves
Given enough data, the choice between the two models can be made in part by plotting the residuals vs. the predicted: or vs. log(predicted): Suppose the true model was log(Y) = log(ALPHA) +(BETA1)*log(L) + (BETA2)*log(K) + err, where err is independent, normal with constant

[R] Seeking help with multcomp

2004-04-18 Thread Greg Blevins
Hello R users, I am having difficulting getting multcomp to run. I have a dataframe attached with a numeric variable q12a and a numeric variable quota (which is really a classification variable). quota has 10 levels and unequal sample sizes. a12a has some missing data. I am interested in

Re: [R] Non-Linear Regression (Cobb-Douglas and C.E.S)

2004-04-18 Thread James Wettenhall
On Sun, 18 Apr 2004, Mohammad Ehsanul Karim wrote: concern (In this case there is no way to linearize it), the Cobb-Douglas being just a 'Toy problem' to see how non-linear process works. And i'm sorry that i cannot guess some approximate parameter values for that CES using some typical

Re: [R] barplot fill patterns

2004-04-18 Thread Tamas Papp
On Sun, Apr 18, 2004 at 11:28:09PM -0400, Hector L. Ayala-del-Rio wrote: Dear R-helpers, I will like to know if there is a way to generate a stacked column graph using both patterns and colors to fill the bars. I have many categories for the number of color available in R, so I will