[R] Computing standardised beta in linear regression

2014-04-03 Thread Ruijie
Hi all, I​ know that there is a package QuantPsyc that has the function lm.beta to calculate standardised coefficients. However, the function is not able to handle categorical variables with more than 2 levels. I coded an alternative function and hope to know if I have done anything wrongly. ​

Re: [R] Troubleshooting underidentification issues in structural equation modelling (SEM)

2013-02-15 Thread Ruijie
Much thanks to both for your advice. I'll take note to post relevant questions going forward. Regards, Ruijie (RJ) He who has a why can endure any how. ~ Friedrich Nietzsche On 15 February 2013 21:12, John Fox wrote: > Dear Ruijie and Bert, > > I agree with Bert

Re: [R] Troubleshooting underidentification issues in structural equation modelling (SEM)

2013-02-15 Thread Ruijie
gards, Ruijie (RJ) He who has a why can endure any how. ~ Friedrich Nietzsche On 10 February 2013 00:38, John Fox wrote: > Dear Ruijie, > > Your model is underidentified by virtue of two of the factors having only > one observed indicator each. No SEM software can magically esti

[R] Troubleshooting underidentification issues in structural equation modelling (SEM)

2013-02-08 Thread Ruijie
think but am not sure that it might be a case of empirical underidentification. Is there a systematic way of diagnosing what kind of underidentification it is? And what are my options to proceed with my analysis? I have more questions but let's take it at these 2 for now. Thanks for a

[R] Post stratification weights in survey package in R

2012-05-13 Thread Ruijie
a) I see from survey.object.sample.weighted$postStrata that weights have been assigned separately for each of the variable. My question is: Is it possible to get 1 weight for each subject instead of 3 weights as shown in the package? Regards, Ruijie (RJ) [[alternative HTML version

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
Yes thank you very much! I knew i had different data points for each subject per condition but didn't realise that it would affect the averages of the averages! Thank you for helping me solve this big headache of mine for the past 2 days =) Regards, Ruijie (RJ) He who has a wh

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
Thanks for your help jim. I have attached the raw data to see if anyone else can replicate my problem. Regards, Ruijie (RJ) He who has a why can endure any how. ~ Friedrich Nietzsche On 25 May 2010 00:17, jim holtman wrote: > Are you sure that you have the same number of d

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
Thanks for your help jim. I have attached the raw data to see if anyone else can replicate my problem. Correction: i realise my attachment was too large, I have uploaded it to another site. The link is: http://dl.dropbox.com/u/1443460/List%20-%20Raw%20Data.csv Regards, Ruijie (RJ) He

Re: [R] Means do not tally

2010-05-24 Thread Ruijie
? Any ideas anyone? Regards, Ruijie (RJ) He who has a why can endure any how. ~ Friedrich Nietzsche On 24 May 2010 22:47, jim holtman wrote: > It is hard to tell what you are doing without data and the results you > have gotten so far: > > PLEASE do read the posting guide &g

[R] Means do not tally

2010-05-24 Thread Ruijie
condition per subject across all subjects, the result would be the same as the grand average. However, this is not the case when I use R or Excel. regardless of functions used. Anyone have any thoughts? Regards, Ruijie (RJ) He who has a why can endure any how. ~ Friedrich Nietzsche

[R] deriving mean from specific cases

2010-04-30 Thread Ruijie
Hi all, I have a large dataset that has >10k entries. The dataset is stored in a dataframe with the headers: SubID Condition1 Condition2 Result1 Result2 There are multiple entries for a given SubID(Subject ID). Condition 1 has 3 levels and condition2 has 2 levels (therefore there are 6 possible

[R] deriving mean from specific cases

2010-04-30 Thread Ruijie
Hi all, I have a large dataset that has >10k entries. The dataset is stored in a dataframe with the headers: SubID Condition1 Condition2 Result1 Result2 There are multiple entries for a given SubID(Subject ID). Condition 1 has 3 levels and condition2 has 2 levels (therefore there are 6 possible