Re: [R] Solving equations

2014-09-07 Thread Berend Hasselman
On 08-09-2014, at 06:55, Mohan Radhakrishnan wrote: > No. I was not looking for an answer to that question. I wasn't clear :-) I > already code using Octave and R to solve ML algorithms. > > I am trying to understand how R packages can help us to solve such > equations using LU decomposition

[R] Psych package

2014-09-07 Thread sarbani.dasgupta
Hi Team, I tried using fa.ply function for a dataset with ordinal and nominal variables.Its giving the following Warning.Is it a bug?Or we need to use some other procedure for factor analysis of ordinal/nominal data? Code:- faPCdirect <- fa.poly(mydata, nfactors=12, rotate="varimax") Warning:-

Re: [R] Solving equations

2014-09-07 Thread Mohan Radhakrishnan
No. I was not looking for an answer to that question. I wasn't clear :-) I already code using Octave and R to solve ML algorithms. I am trying to understand how R packages can help us to solve such equations using LU decomposition etc. The question was about using R with these math algorithms. M

Re: [R] Mixed sorting/ordering of strings acknowledging roman numerals?

2014-09-07 Thread David Winsemius
On Sep 7, 2014, at 7:40 PM, Henrik Bengtsson wrote: > Thank you David - it took me awhile to get back to this and dig into > it. It's clever to imitate gtools::mixedorder() as far as possible. > A few comments: > > 1. It took me a while to understand why you picked 3899 in your > Roman-to-integ

Re: [R] Mixed sorting/ordering of strings acknowledging roman numerals?

2014-09-07 Thread Henrik Bengtsson
Thank you David - it took me awhile to get back to this and dig into it. It's clever to imitate gtools::mixedorder() as far as possible. A few comments: 1. It took me a while to understand why you picked 3899 in your Roman-to-integer table; it's because roman(x) is NA for x > 3899. (BTW, in 'util

[R] CRAN (and crantastic) updates this week

2014-09-07 Thread Crantastic
CRAN (and crantastic) updates this week New packages * classyfire (0.1-0) Maintainer: Eleni Chatzimichali Author(s): Eleni Chatzimichali and Conrad Bessant License: GPL (>= 2) http://crantastic.org/packages/classyfire A collection of functions for the creati

Re: [R] Question about searchTwitter{twitteR}

2014-09-07 Thread Amos B. Elberg
Twitter tweets aren't a stable database. I wouldn't expect the search results to stay stable, as tweets are retweeted, deleted, accounts are closed, privacy settings adjusted, etc. And if there are more than 1000 results, I don't know that twitter is internally ordered so you'd get the same set

Re: [R] Solving equations

2014-09-07 Thread Rui Barradas
Hello, Inline. Em 07-09-2014 09:54, Mohan Radhakrishnan escreveu: Hi, I code R to parse data but not for solving equations. So this is my first such problem. It is a programming puzzle. I have these two equations. 1)4x - 3w = 0 2)8x - 7w =0 I know the value of x and w for

Re: [R] Solving equations

2014-09-07 Thread David Winsemius
In my education this was 9th or 10th grade (US) math. The r-help mailing list is not set up for providing mini-tutorials on R programming. Please read the Posting Guide, do the expected self-eduction in R programming, do the requested searching on your remaining questions in the Archives or Stac

Re: [R] Testing general hypotheses on regression coefficients

2014-09-07 Thread peter dalgaard
On 06 Sep 2014, at 12:24 , bonsxanco wrote: >> >> 1) 8th grade algebra tells me B2/B1 == 0 <==> B2 =0; > > EViews (econometrics program) doesn't have the same opinion: > > Wald test on my real model (edited): > > * H0: B3/B2 = 0 -> F-stat = 37.82497 > * H0: B3 = 0-> F-stat = 16.31689

[R] Solving equations

2014-09-07 Thread Mohan Radhakrishnan
Hi, I code R to parse data but not for solving equations. So this is my first such problem. It is a programming puzzle. I have these two equations. 1)4x - 3w = 0 2)8x - 7w =0 I know the value of x and w for equation 1). x = 3 and w = 4 equation 2). x = 7 and w = 8 I also kno

[R] Question about searchTwitter{twitteR}

2014-09-07 Thread Axel Urbiz
Hello, The function searchTwitter() with the arguments supplied as below would give me a different number of results on different days I run this code. Maybe it is my lack of understanding about what the date arguments are supposed to do in this function, but I would think I should be getting the

Re: [R] using edit to extract codes from vignette failed

2014-09-07 Thread Uwe Ligges
On 07.09.2014 11:06, PO SU wrote: Dear expeRts, When i using the following code, i get a error as follows: edit(file=vignette("grobs",package = "grid")) I guess you want to edit(file = vignette("grobs", package = "grid")[["file"]]) ? Best, Uwe Ligges Error in edit.vignette(

Re: [R] Defining vectors with per-determined correlations

2014-09-07 Thread peter dalgaard
On 04 Sep 2014, at 19:32 , Ista Zahn wrote: > See ?mvrnorm in the MASS package. ... and in particular, notice its empirical=TRUE argument. Also, notice that the 3rd correlation (corr(x, z)=r3, say) can't be set arbitrarily: if r1=r2=0.99, r3 cannot be zero. > > Best, > Ista > > > On Thu

[R] using edit to extract codes from vignette failed

2014-09-07 Thread PO SU
Dear expeRts,     When i using the following code, i get a error as follows:  edit(file=vignette("grobs",package = "grid")) Error in edit.vignette(file = vignette("grobs", package = "grid")) :    argument "name" is missing, with no default I investigated edit function, but still can't  get co