[R] Setting a class / outcome variable for Weka Principal Components Analysis

2014-10-30 Thread Suranga Kasthurirathne
Hi everyone, I've relatively new to R, and i'm trying to use it to perform a Principal Components analysis (PCA) I've done this using WEKA previously, and now i'm trying to do so using R's prcomp and princomp (both options would work for me). One problem i've found is that while WEKA PCA allows u

[R] Standard variance / devistion clarification

2012-03-01 Thread Suranga Kasthurirathne
Dear gurus, Im a newbie, and I want to ask a very general question. Assume that I have a set of numbers as follows, 1, 1, 2, 10, 100, 10,1 >From these, I need to identify which number is the most different as compared to others. (in this case, it will be 100, since its way larger than the other

Re: [R] Standard variance / devistion clarification

2012-03-01 Thread Suranga Kasthurirathne
On 2 Mar 2012 09:12, "Suranga Kasthurirathne" wrote: > Hi, thank you very much for the advice. I'll try it out, and see where I > can take it from there. > > @david, your point is noted. I will avoid such mails in the future. > On 2 Mar 2012 04:27, "Peter Eh

Re: [R] Standard variance / devistion clarification

2012-03-01 Thread Suranga Kasthurirathne
Hi, thank you very much for the advice. I'll try it out, and see where I can take it from there. @david, your point is noted. I will avoid such mails in the future. On Fri, Mar 2, 2012 at 4:57 AM, Peter Ehlers wrote: > On 2012-03-01 13:52, John Kane wrote: > >> No it's an outlier problem, I

[R] poLCA and conditional dependence

2012-02-09 Thread Suranga Kasthurirathne
Dear all, I'm an Sri Lankan undergraduate student. I'm also a total newbie to R. My aim is to use the poLCA package to do a latent class analysis. I found the documentation very helpful, but need to make a small clarification that has stumped me awhile. In my work, I need to make provision for c

[R] Writing output into a file

2012-02-12 Thread Suranga Kasthurirathne
Hi everyone, I'm an R newbie working with the poLCA module. I achieved my target without having to bother anyone, but It seems that I've got stuck at the last minute. My problem is simple. I need to write my results into a file. My results are in the shape of a list (unbalanced columns) I've cons

Re: [R] Writing output into a file

2012-02-12 Thread Suranga Kasthurirathne
Hi, Thank you very much for sharing these ideas. I really appreciate them. Let me go try them out :-) On Mon, Feb 13, 2012 at 4:37 AM, Rui Barradas wrote: > Hello > > One way is > > # Write the file > save(myList, file="test1.bin") > > # Reload the data, under the same name, 'myList' > load(f

Re: [R] Writing output into a file

2012-02-13 Thread Suranga Kasthurirathne
t; Etc. etc. > > > > I also tried the second method (using a # Open a file connection) > > Unfortunately, here too the data gets extremely garbled. > > Has anyone faced such a situation before? > > > > Any help / comments / useful links would be much apprec

[R] Retrieve by Id from an R list

2012-02-13 Thread Suranga Kasthurirathne
Hi everyone, I'm using the poLCA module for some analysis work. Basically, Im using the command >poLCA(f, data=response,nclass=2) This returns a poLCA object (a list) >From this data, I need to retrieve certain indexes, such as[[5]] as seen below. [[5]] Pr(1) Pr(2)

Re: [R] Writing output into a file

2012-02-13 Thread Suranga Kasthurirathne
Hi, many thanks for the reply. I really appreciate it. Since I'm still very new to R, I think I should take some time to research what you suggested. (I don't want to keep posting basic questions to the list all the time) But still, thank you so much for being helpful... On Mon, Feb 13, 2012 a

[R] poLCA and conditional dependence

2012-02-16 Thread Suranga Kasthurirathne
Hi everyone / poLCA gurus, I'm facing a problem regarding conditional dependence and poLCA. Using a few data sets composed of only 1's and 2's, i'm able to do a latent class analysis for independent data columns using poLCA. The commands I use to do this are something like, bcs = read.csv("data.

[R] Basic advice for a poLCA newbie

2012-02-20 Thread Suranga Kasthurirathne
Hi everyone / poLCA gurus, I'm facing a problem regarding conditional dependence and poLCA. Using a few data sets composed of only 1's and 2's, i'm able to do a latent class analysis for independent data columns using poLCA. The commands I use to do this are something like, bcs = read.csv("data.