[R] What does it mean by initial value not available?

2007-09-09 Thread Yuchen Luo
Dear friends. I use ConstrOptim( ) and got error message initial value not available. My understanding of initial value not available is that one of the following 3 cases happens: 1.The objective function is not well defined at the point of the initial value. 2. The differentiation of the

[R] artificial data matrix with 100000 rows

2007-09-09 Thread kevinchang
Hi guys, I tried to made the matrix with this size by either matrix() or array(). However, there seems to be default limit of number for rows made. I got sort of error message from R .To be specific, m--matrix(ncol=3,nrow=10) error message:[ reached getOption(max.print) -- omitted 7

Re: [R] artificial data matrix with 100000 rows

2007-09-09 Thread Paul Smith
On 9/9/07, kevinchang [EMAIL PROTECTED] wrote: I tried to made the matrix with this size by either matrix() or array(). However, there seems to be default limit of number for rows made. I got sort of error message from R .To be specific, m--matrix(ncol=3,nrow=10) error message:[ reached

[R] Sweave figure aspect ratio

2007-09-09 Thread Werner Wernersen
Hello, using Sweave, is there any option to preserve the original aspect ratio of plots generated from R code? Consider this Sweave chunk: test,echo=F,fig=T,width=2,height=2= x - 1:10 y - sin(x) par(mar=c(4,4,0,4)) plot(x,y, xlab=x label, ylab=y label ) @ In Latex, I want to

Re: [R] Problem in installing packages on linux machine...

2007-09-09 Thread Carsten Jaeger
Your problem is not related to missing file permissions but to a problem with the linker (ld). As you can see from the error message, ld cannot find a compatible libR.so so compilation fails. You did not specify which architecture you're on but in case it is a 64-bit platform, the following thread

Re: [R] What does it mean by initial value not available?

2007-09-09 Thread Duncan Murdoch
On 09/09/2007 7:01 AM, Yuchen Luo wrote: Dear friends. I use ConstrOptim( ) and got error message initial value not available. My understanding of initial value not available is that one of the following 3 cases happens: 1.The objective function is not well defined at the point of the

Re: [R] Sweave figure aspect ratio

2007-09-09 Thread Duncan Murdoch
On 09/09/2007 7:24 AM, Werner Wernersen wrote: Hello, using Sweave, is there any option to preserve the original aspect ratio of plots generated from R code? Consider this Sweave chunk: test,echo=F,fig=T,width=2,height=2= x - 1:10 y - sin(x) par(mar=c(4,4,0,4)) plot(x,y, xlab=x

Re: [R] stacking data frames with different variables

2007-09-09 Thread hadley wickham
Have a look at rbind.fill in the reshape package. Hadley On 9/9/07, Muenchen, Robert A (Bob) [EMAIL PROTECTED] wrote: Hi All, If I need to stack two data frames, I can use rbind, but it requires that all variables exist in both sets. I can make that happen, but other stat packages would

Re: [R] stacking data frames with different variables

2007-09-09 Thread Muenchen, Robert A (Bob)
Perfect. Thanks Hadley! -Original Message- From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Sunday, September 09, 2007 10:11 AM To: Muenchen, Robert A (Bob) Cc: r-help@stat.math.ethz.ch Subject: Re: [R] stacking data frames with different variables Have a look at rbind.fill

Re: [R] confusion matrix - better code?

2007-09-09 Thread Monica Pisica
Wolfgang, This looks great and certainly puts to shame my code . Thanks, Monica Date: Fri, 7 Sep 2007 21:04:32 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: r-help@stat.math.ethz.ch Subject: Re: [R] confusion matrix - better code? Dear Monica, try this: cm =

[R] NA in AR model residuals

2007-09-09 Thread Nick Chorley
Hi, This may be a stupid question, but why when creating an AR model, why does R set the first n components of the ar object's resid vector to NA (where n is the order of the model)? Regards, NC [[alternative HTML version deleted]] __

[R] loop execution problem

2007-09-09 Thread kevinchang
This is bizzare. The for loop I set seems to go infinitly because the hourglass cursor never disappers and I never get the result. But when I click on X of the window try to exit R, the execution finishes right after I abort exiting when RGui asks me to save the workplace or not. Please help

Re: [R] loop execution problem

2007-09-09 Thread Duncan Murdoch
On 09/09/2007 1:36 PM, kevinchang wrote: This is bizzare. The for loop I set seems to go infinitly because the hourglass cursor never disappers and I never get the result. But when I click on X of the window try to exit R, the execution finishes right after I abort exiting when RGui asks me

[R] fitdistr()

2007-09-09 Thread Terence Broderick
I am trying to fit the chi-squared distribution to a set of data using the fitdistr function found in the MASS4 library, the data set is called ONES3, I have loaded it using the command ONES3-read.table(ONES3.pdf,header=TRUE,na=NA) I print out the dataset ONES3 to the screen to make

Re: [R] fitdistr()

2007-09-09 Thread jim holtman
I assume that you want to do the fitdistr on one of the columns of the dataframe that you have read in. What does 'str(ONES3)' show? If the data is in the first column, try: fitdistr(ONES3[[1]],chi-squared) On 9/9/07, Terence Broderick [EMAIL PROTECTED] wrote: I am trying to fit the

[R] Survey package

2007-09-09 Thread eugen pircalabelu
Hi R-users! I have a problem with the survey package and i would be very grateful if you can help me. A short example: stratum id weight nh Nh y sex 1 1 3 5 15 23 1 1 2 3 5 15 25 1 1 3 3 5 15 27 2 1 4 3 5

Re: [R] What does it mean by initial value not available?

2007-09-09 Thread Yuchen Luo
Dear Professor Mordoch. Thank you very much for your help! Your time is highly appreciated! I do intend to optimize over 3 parameters and the way I did it is constrOptim(c(0.5,0.3,0.5), fit.error, fit.error.grr, ui=ui,ci=ci). Also, There is a missing value for both sigmae and ss. (The last 3rd

Re: [R] Sweave figure aspect ratio

2007-09-09 Thread Werner Wernersen
Many thanks for the quick reply, Duncan. Now I see that something is going wrong in R already. I overlooked this because the R window was so big. I have to persuade plotViewport() not to create a square area but one which takes the different margins into account. Best regards, Werner ---

[R] [R-pkgs] QCA version 0.4-5

2007-09-09 Thread Adrian Dusa
QCA implements the Qualitative Comparative Analysis using a boolean minimization algorithm for data coded with presence/absence of the causal conditions that affects a phenomenon of interest. This new release has an experimental function that obtains the same exact solutions as the main

Re: [R] NA in AR model residuals

2007-09-09 Thread Nick Chorley
Thanks all! On 09/09/2007, Nick Chorley [EMAIL PROTECTED] wrote: Hi, This may be a stupid question, but why when creating an AR model, why does R set the first n components of the ar object's resid vector to NA (where n is the order of the model)? Regards, NC [[alternative

[R] lattice panel.lmline problem

2007-09-09 Thread Ross Darnell
I am wanting to generate panels showing scatterplots with the linear fitted line for two groups within each panel superimposed. I have two conditioning factors, variable and Group and I want separate panels for each level of variable with different symbols and lmlines for each level of Group.