[R] multilevel sampling weight

2013-11-18 Thread Pablo Menese Camargo
Anyone is working with the upgrade of any multilevel package for apply
sampling weights?

Thanks

[[alternative HTML version deleted]]

__
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] foreign package problem with stata 13

2013-10-02 Thread Pablo Menese Camargo
foreign package does not support dataset saved at stata 13.
anyone knows any wayt to make it works?

[[alternative HTML version deleted]]

__
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.


Re: [R] foreign package problem with stata 13

2013-10-02 Thread Pablo Menese Camargo
The thing is, the oldest version in wich stata 13 save, is stata12.
I can use this, but would be a good momento to upgrade foreign package.
thanks a lot anyways!!!


On Wed, Oct 2, 2013 at 8:04 PM, Richard Kwock richardkw...@gmail.comwrote:

 Use saveold instead of save when you save your dataset in stata.

 I don't think foreign library in R supports stata 13 yet.

 Richard

 On Wed, Oct 2, 2013 at 3:11 PM, Pablo Menese Camargo pmen...@gmail.com
 wrote:
  foreign package does not support dataset saved at stata 13.
  anyone knows any wayt to make it works?
 
  [[alternative HTML version deleted]]
 
  __
  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.


[[alternative HTML version deleted]]

__
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.


Re: [R] SEM polychoric

2013-08-12 Thread Pablo Menese Camargo
I'm using lavaan indeed


On Mon, Aug 12, 2013 at 6:21 AM, Jose Iparraguirre 
jose.iparragui...@ageuk.org.uk wrote:

 Hi Pablo,

 Prof John Fox is a frequent contributor to this forum, and no-one is
 better placed than him to respond on your particular point, but I would use
 the sem and the polycor packages. There's an example in the documentation
 of sem which uses polychoric correlations.
 Incidentally you haven't said which packages you'd used -lavaan perhaps?.
 Please do let the forum know which packages you use whenever posting a
 question.
 Regards,

 José

 Prof. José Iparraguirre
 Chief Economist
 Age UK

 Profesor de Economía
 Universidad de Morón
 Morón, Buenos Aires, Argentina



 -Original Message-
 From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
 On Behalf Of Pablo Menese Camargo
 Sent: 12 August 2013 02:37
 To: R help
 Subject: [R] SEM polychoric

 I have this

 mcfa-
 impulsivity=~imp1r+imp2+imp3+imp4
 physical=~phys1+phys2+phys3+phys4
 risky=~risk1+risk2+risk3+risk4
 selfish=~self1+self2+self3+self4
 simple=~simp1+simp2+simp3+simp4r
 temper=~temp1+temp2+temp3+temp4
 control=~impulsivity+physical+risky+selfish+simple+temper

 where: the model is a second order CFA
 the variables are dichotomic (0-1)
 and I would like to use polychoric

 when I have the same items but polytomous i use

 fitcfa - cfa(mcfa, data = data_analisis) summary(fitcfa, standardized =
 TRUE, fit.measure=TRUE) standardizedSolution(fitcfa, type = std.all)

 anyone know what y should do to apply polychoric?

 [[alternative HTML version deleted]]

 __
 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.

 The Wireless from Age UK | Radio for grown-ups.

 www.ageuk.org.uk/thewireless


 If you’re looking for a radio station that offers real variety, tune in to
 The Wireless from Age UK.
 Whether you choose to listen through the website at
 www.ageuk.org.uk/thewireless, on digital radio (currently available in
 London and Yorkshire) or through our TuneIn Radio app, you can look forward
 to an inspiring mix of music, conversation and useful information 24 hours
 a day.




 ---
 Age UK is a registered charity and company limited by guarantee,
 (registered charity number 1128267, registered company number 6825798).
 Registered office: Tavis House, 1-6 Tavistock Square, London WC1H 9NA.

 For the purposes of promoting Age UK Insurance, Age UK is an Appointed
 Representative of Age UK Enterprises Limited, Age UK is an Introducer
 Appointed Representative of JLT Benefit Solutions Limited and Simplyhealth
 Access for the purposes of introducing potential annuity and health
 cash plans customers respectively.  Age UK Enterprises Limited, JLT
 Benefit Solutions Limited and Simplyhealth Access are all authorised and
 regulated by the Financial Services Authority.
 --

 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are
 addressed. If you receive a message in error, please advise the sender and
 delete immediately.

 Except where this email is sent in the usual course of our business, any
 opinions expressed in this email are those of the author and do not
 necessarily reflect the opinions of Age UK or its subsidiaries and
 associated companies. Age UK monitors all e-mail transmissions passing
 through its network and may block or modify mails which are deemed to be
 unsuitable.

 Age Concern England (charity number 261794) and Help the Aged (charity
 number 272786) and their trading and other associated companies merged
 on 1st April 2009.  Together they have formed the Age UK Group, dedicated
 to improving the lives of people in later life.  The three national
 Age Concerns in Scotland, Northern Ireland and Wales have also merged with
 Help the Aged in these nations to form three registered charities:
 Age Scotland, Age NI, Age Cymru.






[[alternative HTML version deleted]]

__
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] SEM polychoric lavaan

2013-08-12 Thread Pablo Menese Camargo
I have this

mcfa-
impulsivity=~imp1r+imp2+imp3+imp4
physical=~phys1+phys2+phys3+phys4
risky=~risk1+risk2+risk3+risk4
selfish=~self1+self2+self3+self4
simple=~simp1+simp2+simp3+simp4r
temper=~temp1+temp2+temp3+temp4
control=~impulsivity+physical+risky+selfish+simple+temper

where: the model is a second order CFA
the variables are dichotomic (0-1)
i'm using lavaan
and I would like to use polychoric

when I have the same items but polytomous i use

fitcfa - cfa(mcfa, data = data_analisis)
summary(fitcfa, standardized = TRUE, fit.measure=TRUE)
standardizedSolution(fitcfa, type = std.all)

anyone know what y should do to apply polychoric?

[[alternative HTML version deleted]]

__
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] SEM polychoric

2013-08-11 Thread Pablo Menese Camargo
I have this

mcfa-
impulsivity=~imp1r+imp2+imp3+imp4
physical=~phys1+phys2+phys3+phys4
risky=~risk1+risk2+risk3+risk4
selfish=~self1+self2+self3+self4
simple=~simp1+simp2+simp3+simp4r
temper=~temp1+temp2+temp3+temp4
control=~impulsivity+physical+risky+selfish+simple+temper

where: the model is a second order CFA
the variables are dichotomic (0-1)
and I would like to use polychoric

when I have the same items but polytomous i use

fitcfa - cfa(mcfa, data = data_analisis)
summary(fitcfa, standardized = TRUE, fit.measure=TRUE)
standardizedSolution(fitcfa, type = std.all)

anyone know what y should do to apply polychoric?

[[alternative HTML version deleted]]

__
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] eRm package, RSM: Error in solve.default(parets$hessian) :

2013-05-21 Thread Pablo Menese Camargo
I want to make an index using IRT, I use eRm package.
I have a data frame (24 items, 4 categories, 427 cases) that works if I use
PCM (partial credit model), but, when I run RSM (rating scale model) this
appear:

Error in solve.default(parest$hessian) :
  Lapack routine dgesv: system is exactly singular: U[14,14] = 0

By mistake I recoded the items in three categories, and works the RSM, but
when I realized I recoded to four again and nothing... the same error.

Anyone?



THANKS!!!

[[alternative HTML version deleted]]

__
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.