[R] problem with "transform" and "get" functions

2013-05-21 Thread Roni Kobrosly
Hello, I'm having a problem using the "transform" and "get" functions. I'm probably making a dumb mistake, and I need help! I start by making a small simulated dataset. I save the names of the variables in "var.names." Without getting into the details of it, I have to create a custom function to p

Re: [R] Retrieve "raw scores" in factor analysis

2011-01-18 Thread Roni Kobrosly
on factor scores for more info. -Roni On Mon, Jan 17, 2011 at 5:24 PM, Roni Kobrosly wrote: > I'm working with a data collected through complex survey design. My goal is > to conduct a factor analysis ti extract two a priori known factors, and to > get factor scores for these f

[R] Retrieve "raw scores" in factor analysis

2011-01-17 Thread Roni Kobrosly
I'm working with a data collected through complex survey design. My goal is to conduct a factor analysis to extract two a priori, known factors, and to get factor scores for these factors. Unfortunately, the "svyfactanal" procedure from the Survey package does not allow for the calculation of ei

Re: [R] using string as variable name in model

2010-06-04 Thread Roni Kobrosly
update() works! Thank you thomas On Jun 4, 2010, at 11:47 AM, Thomas Lumley wrote: > > > I think you're looking for the update() function. > > -thomas > > On Thu, 3 Jun 2010, Roni Kobrosly wrote: > >> Hi, >> >> I made a small table of s

[R] using string as variable name in model

2010-06-03 Thread Roni Kobrosly
Hi, I made a small table of strings that will serve as variable names for lm models I will run. The table looks like this: > varnames numname 11 zCANTAB_log_IED_totaltrials 22 zCANTAB_log_IED_preED 33zCANTAB_logPALerrors 44

[R] problem with 'svyby' function from SURVEY package

2010-06-02 Thread Roni Kobrosly
Hello, I'm using a complex survey dataset and my goal is to simply spit out a bunch of probability-weighted outcome variable means for the different levels of covariate. So I first define the structure of the study design (I'm using the CDC's NHANES data): dhanes <- svydesign(id=~PSU, strat=~S