Hi All,
I am new to post question on this list. I apologize if this question is too
easy or irrelevant.
I am doing a simulation study and I need to read a data file that can be
easily read by SAS.
So, what I try to do is to execute SAS in R and then read the output of SAS
to R.
I try the
Thanks for some kind responses from the list.
Maybe I should present my data here a little bit to explain why I want to
use SAS.
Below is part of my data set.
First, I need to skip the first 9 lines which I can use skip=9 to do this.
Second, I need to read to rows of data. the first row starts
Dear List,
I would like to write my output data to a file with the fixed format like
what you can do in SAS.
For example:
put
@1( variable1 ) (10.5)
@11 ( variable 2) ($5.)
:
:
etc.
Is there a way in R that would allow me to do the same thing?
Thank you for your
Dear all,
I would like to generate bi-variate normal data given that the first column
of the data is known. for example:
I first generate a set of data using the command,
x - rmvnorm(10, c(0, 0), matrix(c(1, 0, 0, 1), 2))
then I would like to sum up the two columns of x:
x.sum - apply(x, 1,
Mark,
Thanks. I am still waiting for someone to help me with this matter. I will
appreciate for any insight from you or the others.
Thanks.
David
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 01, 2006 12:27 AM
To: Shin, David
Cc: r-help
:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 11:50 AM
To: Shin, David; 'r-help@stat.math.ethz.ch'
Subject: RE: [R] generate bi-variate normal data
From: Shin, David
Dear all,
I would like to generate bi-variate normal data given that
the first column of the data is known. for example:
I