[R] person-level to person-period xfm

2009-11-19 Thread Robert Terwilliger
Dear R experts,

I have a so-called person-level data frame that I need to transform
into a person-period data frame.

If the lingo is unclear, the data have one row for each subject, with
repeated measures data each in a separate column.

I need to transform these data so that each subject has multiple rows,
one for each repeated measure value.

Is there a quick-and-dirty way to do this transformation?

Many thanks,

-- 
Robert Terwilliger
Biomedical Physicist
Laboratory of Neurocognitive Development
Western Psychiatric Institute and Clinic
University of Pittsburgh Medical Center
Loeffler Building
121 Meyran Avenue  #114
Pittsburgh, PA 15213
412.383.8174  - Office
412.383.8179 - Fax
em: rater...@gmail.com
http://www.wpic.pitt.edu/research/lncd/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] structural equation modeling

2009-10-28 Thread Robert Terwilliger
Dear R-help,

I am interested in using structural equation modeling.

Just getting started with it, but I'm looking for suggestions for packages.

As an aside, what's the best way for looking for packages at CRAN?

-- 
Robert Terwilliger
Biomedical Physicist
Laboratory of Neurocognitive Development
Western Psychiatric Institute and Clinic
University of Pittsburgh Medical Center
Loeffler Building
121 Meyran Avenue  #114
Pittsburgh, PA 15213
412.383.8174  - Office
412.383.8179 - Fax
em: rater...@gmail.com
http://www.wpic.pitt.edu/research/lncd/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help with longitudinal data plot

2008-08-07 Thread Robert Terwilliger
Dear R Help,

I am attempting to make a plot of longitudinal data, a sample data
frame of which is shown below.

I'd like to show all of the subjects in the same plot, with a set of
connecting line segments for each subject. 'age' would be the x-axis
and 'score' would be the y-axis.

subject age  score
1 10123  12  51.06
2 10123  14  50.00
3 10123  15  62.22
4 10124  12  74.42
5 10124  13  72.73
6 10124  14  63.41
7 10125  16  54.55
8 10125  17  50.00
9 10125  18  54.35
1010128  17  97.83
1110128  18  97.87
1210128  19 100.00
...

Any help would be appreciated.

Regards,

Robert Terwilliger

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] r^2 for SSasymp?

2008-07-14 Thread Robert Terwilliger
Dear R Help,

At the risk of sounding naïve, is there a way for obtaining something
resembling an r^2 value for the fit obtained using SSasymp?

I have read ?SSasymp and looked through the archives but to no avail.

Many thanks,

Robert Terwilliger

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] binning data

2008-01-14 Thread Robert Terwilliger
I would like to 'bin' a vector of of values (10 values) in much
the same way as 'hist' does for plotting, but I just want a result
with the bins and the frequencies.

Is there a 'quick and dirty' (built-in) way to do this, or do I need
to write some code?

Many thanks,

Robert Terwilliger

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] OS X binary: 32 or 64-bit?

2008-01-10 Thread Robert Terwilliger
Dear R Experts,

I am using R.app (the Mac OS X binary) for neuroimage analysis, so I
am loading in some large image files. I get the following error in the
middle of my script:

 source(3dLME.R)
Read 1 record
Read 1 record
Read 1 record
Read 1 record
Read 1 record
Error: cannot allocate vector of size 3.1 Gb
R(2081,0xa000d000) malloc: *** vm_allocate(size=3321675776) failed
(error code=3)
R(2081,0xa000d000) malloc: *** error: can't allocate region
R(2081,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
R(2081,0xa000d000) malloc: *** vm_allocate(size=3321675776) failed
(error code=3)
R(2081,0xa000d000) malloc: *** error: can't allocate region
R(2081,0xa000d000) malloc: *** set a breakpoint in szone_error to debug

My Mac is 64-bit, however, I'm wondering if R is compiled as a 32-bit app?

Many thanks,

Robert Terwilliger

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.