random passwords

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

random passwords

drfg2008
in our surveys the subjects get random passwords.

The passwords have to be generated with SPSS (17). Plus, random passwords should not be too long (not more than 8 digits, since subjects might have to type them in) and should consist of a large number of differnt characters (letters, numbers, special characters) and all passwords have to be different.


I checked Raynald's for a syntax example.   Has anyone an idea or even a syntax.

Thanks
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: random passwords

vlad simion
Hi Frank,

try the following syntax:

input program.
string passwd (a8).
loop #i = 1 to 500.
loop.
compute #numbers = 0.
loop #j = 1 to 8.
compute #pos = trunc(uniform(75))+1.
compute substr(passwd,#j,1) =substr('0123456789abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz!@#$%^&*()<>?', #pos, 1).
if (#pos <= 10) #numbers = #numbers + 1.
end loop.
end loop if (#numbers > 1).
end case.
end loop.
end file.
end input program.
exe.

hth,
Vlad


On Thu, Jul 7, 2011 at 10:46 AM, drfg2008 <[hidden email]> wrote:
in our surveys the subjects get random passwords.

The passwords have to be generated with SPSS (17). Plus, random passwords
should not be too long (not more than 8 digits, since subjects might have to
type them in) and should consist of a large number of differnt characters
(letters, numbers, special characters) and all passwords have to be
different.


I checked Raynald's for a syntax example.   Has anyone an idea or even a
syntax.

Thanks

-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/random-passwords-tp4560201p4560201.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

Re: random passwords

drfg2008
well, that was fast!

works fine, Thanks
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: random passwords

Albert-Jan Roskam
In reply to this post by vlad simion
A simple Python function can generate passwords. You can use a cursor to get the pwds in your sav file, or write it to a csv and match that to your sav based on casenum.
There is a small chance that there are duplicate pwds, depending on the length of the pwd.

import random, string
def pwd(chars=8):
    pwd = ""
    for c in range(chars):
        pwd += random.choice(string.printable)
    return pwd

>>> pwd()
'`EC%dB\r&'

Cheers!!
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--- On Thu, 7/7/11, vlad simion <[hidden email]> wrote:

From: vlad simion <[hidden email]>
Subject: Re: [SPSSX-L] random passwords
To: [hidden email]
Date: Thursday, July 7, 2011, 9:59 AM

Hi Frank,

try the following syntax:

input program.
string passwd (a8).
loop #i = 1 to 500.
loop.
compute #numbers = 0.
loop #j = 1 to 8.
compute #pos = trunc(uniform(75))+1.
compute substr(passwd,#j,1) =substr('0123456789abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz!@#$%^&*()<>?', #pos, 1).
if (#pos <= 10) #numbers = #numbers + 1.
end loop.
end loop if (#numbers > 1).
end case.
end loop.
end file.
end input program.
exe.

hth,
Vlad


On Thu, Jul 7, 2011 at 10:46 AM, drfg2008 <kontakt@...> wrote:
in our surveys the subjects get random passwords.

The passwords have to be generated with SPSS (17). Plus, random passwords
should not be too long (not more than 8 digits, since subjects might have to
type them in) and should consist of a large number of differnt characters
(letters, numbers, special characters) and all passwords have to be
different.


I checked Raynald's for a syntax example.   Has anyone an idea or even a
syntax.

Thanks

-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/random-passwords-tp4560201p4560201.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@... (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

Matching/propensity scores for 3 groups

Dale Glaser
Greetings.......I have used the SPSS macro (that I believe is discussed in an article in Behavior Research and Methods) that uses propensity scores (via binary logisitic regression) for matching two groups; however, I am currently on a study that necessitates matching on three groups.  So I was curious what any of you have done for matching three groups using SPSS (I will be matching on sex, Length of stay, and # of comorbidities)?  Do you think it would be problematic to use propensity scores from a multinomial logistic regression (and insert such in the macro?).  Or will that just give me two sets of propensity scores (e.g., grp 1 vs grp 2; grp 1 vs grp 3, etc.)?
 
Otherwise, I do have Stata but have not used it for matching purposes.......if SPSS is not equipped for 3 group matching, do you know if Stata has a package that does such?
 
thank you very much in advance for any suggestions.....dale
 


Dale Glaser, Ph.D.
Principal--Glaser Consulting
Lecturer/Adjunct Faculty--SDSU/USD/Alliant
3115 4th Avenue
San Diego, CA 92103
phone: 619-220-0602
fax: 619-220-0412
email: [hidden email]
website: www.glaserconsult.com
Reply | Threaded
Open this post in threaded view
|

Re: Matching/propensity scores for 3 groups

Maguin, Eugene
Hi Dale,
 
Yes, stata does have a routine. I don't recall it's name but maybe check the stata website. I don't use stata but somebody whose work i was reviewing did use it. The project had two groups so i don't know whether the stata routine can accomodate three groups.
 
Gene Maguin


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Dale Glaser
Sent: Thursday, July 07, 2011 7:01 AM
To: [hidden email]
Subject: Matching/propensity scores for 3 groups

Greetings.......I have used the SPSS macro (that I believe is discussed in an article in Behavior Research and Methods) that uses propensity scores (via binary logisitic regression) for matching two groups; however, I am currently on a study that necessitates matching on three groups.  So I was curious what any of you have done for matching three groups using SPSS (I will be matching on sex, Length of stay, and # of comorbidities)?  Do you think it would be problematic to use propensity scores from a multinomial logistic regression (and insert such in the macro?).  Or will that just give me two sets of propensity scores (e.g., grp 1 vs grp 2; grp 1 vs grp 3, etc.)?
 
Otherwise, I do have Stata but have not used it for matching purposes.......if SPSS is not equipped for 3 group matching, do you know if Stata has a package that does such?
 
thank you very much in advance for any suggestions.....dale
 


Dale Glaser, Ph.D.
Principal--Glaser Consulting
Lecturer/Adjunct Faculty--SDSU/USD/Alliant
3115 4th Avenue
San Diego, CA 92103
phone: 619-220-0602
fax: 619-220-0412
email: [hidden email]
website: www.glaserconsult.com
Reply | Threaded
Open this post in threaded view
|

SPSS and Cognos: do they play nicely?

King Douglas
Hey, folks,

Is there a way to export SPSS output to COGNOS in a user-friendly fashion such that tables and graphs can be distributed broadly via Cognos in a corporate setting where access to SPSS is very limited?  We currently distribute SPSS tables and graphs in Excel format, sometimes PowerPoint, but I'm wondering if Cognos might be better.

I'll follow up on any suggestions or leads.

Thanks,

King Douglas
American Airlines Customer Research

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Matching/propensity scores for 3 groups

ANDRES ALBERTO BURGA LEON
In reply to this post by Maguin, Eugene

I think is psmatch2.ado

Also there are other STATA routines in the Handbook on Impact Evaluation edited by the World Bank: http://www-wds.worldbank.org/external/default/WDSContentServer/WDSP/IB/2009/12/10/000333037_20091210014322/Rendered/PDF/520990PUB0EPI1101Official0Use0Only1.pdf

But I think they are only for two groups

Andrés

Mg. Andrés Burga León
Coordinador de Análisis e Informática
Unidad de Medición de la Calidad Educativa
Ministerio de Educación del Perú
Calle El Comercio s/n (espalda del Museo de la Nación)
Lima 41
Perú
Teléfono 615-5840



Gene Maguin <[hidden email]>
Enviado por: "SPSSX(r) Discussion" <[hidden email]>

07/07/2011 08:14 a.m.

Por favor, responda a
Gene Maguin <[hidden email]>

Para
[hidden email]
cc
Asunto
Re: Matching/propensity scores for 3 groups





Hi Dale,
 
Yes, stata does have a routine. I don't recall it's name but maybe check the stata website. I don't use stata but somebody whose work i was reviewing did use it. The project had two groups so i don't know whether the stata routine can accomodate three groups.
 
Gene Maguin


From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Dale Glaser
Sent:
Thursday, July 07, 2011 7:01 AM
To:
[hidden email]
Subject:
Matching/propensity scores for 3 groups

Greetings.......I have used the SPSS macro (that I believe is discussed in an article in Behavior Research and Methods) that uses propensity scores (via binary logisitic regression) for matching two groups; however, I am currently on a study that necessitates matching on three groups.  So I was curious what any of you have done for matching three groups using SPSS (I will be matching on sex, Length of stay, and # of comorbidities)?  Do you think it would be problematic to use propensity scores from a multinomial logistic regression (and insert such in the macro?).  Or will that just give me two sets of propensity scores (e.g., grp 1 vs grp 2; grp 1 vs grp 3, etc.)?
 
Otherwise, I do have Stata but have not used it for matching purposes.......if SPSS is not equipped for 3 group matching, do you know if Stata has a package that does such?
 
thank you very much in advance for any suggestions.....dale
 


Dale Glaser, Ph.D.
Principal--Glaser Consulting
Lecturer/Adjunct Faculty--SDSU/USD/Alliant
3115 4th Avenue
San Diego, CA 92103
phone: 619-220-0602
fax: 619-220-0412
email: [hidden email]
website:
www.glaserconsult.com


Reply | Threaded
Open this post in threaded view
|

Re: Matching/propensity scores for 3 groups

Jon K Peck
In reply to this post by Dale Glaser
Could you elaborate on what you mean by matching on three groups?  Why couldn't you compute the propensity scores based on all the relevent variables and then match on those scores using your macro or the FUZZY extension command?

Jon Peck
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Dale Glaser <[hidden email]>
To:        [hidden email]
Date:        07/07/2011 01:04 PM
Subject:        [SPSSX-L] Matching/propensity scores for 3 groups
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Greetings.......I have used the SPSS macro (that I believe is discussed in an article in Behavior Research and Methods) that uses propensity scores (via binary logisitic regression) for matching two groups; however, I am currently on a study that necessitates matching on three groups.  So I was curious what any of you have done for matching three groups using SPSS (I will be matching on sex, Length of stay, and # of comorbidities)?  Do you think it would be problematic to use propensity scores from a multinomial logistic regression (and insert such in the macro?).  Or will that just give me two sets of propensity scores (e.g., grp 1 vs grp 2; grp 1 vs grp 3, etc.)?
 
Otherwise, I do have Stata but have not used it for matching purposes.......if SPSS is not equipped for 3 group matching, do you know if Stata has a package that does such?
 
thank you very much in advance for any suggestions.....dale
 


Dale Glaser, Ph.D.
Principal--Glaser Consulting
Lecturer/Adjunct Faculty--SDSU/USD/Alliant
3115 4th Avenue
San Diego, CA 92103
phone: 619-220-0602
fax: 619-220-0412
email: [hidden email]
website:
www.glaserconsult.com


Reply | Threaded
Open this post in threaded view
|

Re: Matching/propensity scores for 3 groups

J P-6
In reply to this post by Dale Glaser
Dale,

Have you considered generating a propensity score for each person and using the score as a covariate/weight in subsequent analysis?

John



From: Dale Glaser <[hidden email]>
To: [hidden email]
Sent: Thu, July 7, 2011 7:01:04 AM
Subject: Matching/propensity scores for 3 groups

Greetings.......I have used the SPSS macro (that I believe is discussed in an article in Behavior Research and Methods) that uses propensity scores (via binary logisitic regression) for matching two groups; however, I am currently on a study that necessitates matching on three groups.  So I was curious what any of you have done for matching three groups using SPSS (I will be matching on sex, Length of stay, and # of comorbidities)?  Do you think it would be problematic to use propensity scores from a multinomial logistic regression (and insert such in the macro?).  Or will that just give me two sets of propensity scores (e.g., grp 1 vs grp 2; grp 1 vs grp 3, etc.)?
 
Otherwise, I do have Stata but have not used it for matching purposes.......if SPSS is not equipped for 3 group matching, do you know if Stata has a package that does such?
 
thank you very much in advance for any suggestions.....dale
 


Dale Glaser, Ph.D.
Principal--Glaser Consulting
Lecturer/Adjunct Faculty--SDSU/USD/Alliant
3115 4th Avenue
San Diego, CA 92103
phone: 619-220-0602
fax: 619-220-0412
email: [hidden email]
website: www.glaserconsult.com
Reply | Threaded
Open this post in threaded view
|

Re: SPSS 15 scripts conversion for 19

johnleeholmes@gmail.com
In reply to this post by King Douglas
I 'heard tell' several years ago that there was a program to convert
scripts written for SPSS version 15 (Visual Basic) so they would run
with Sax Basic (or is it WinWrap Basic now)? Is that true and, if so,
where do we get such a program and how well does it convert? These
scripts do things like: send output into Excel tables in a specific
manner, open up a text document in Word and find/replace extra commas so
that the csv file import works correctly, read from the output
significance tests or frequencies and send these back into the syntax.
Any hope of finding a translator that successfully translates those
types of procedures? Or were my ears only hearing what they wanted to hear?

Thanks!

John Lee
--

John Lee P. Holmes
Survey Operations Manager
Acting Senior Research Analyst
Center for Survey Research
A Unit of the Weldon Cooper Center for Public Service
Mess Mail: PO Box 400767
University of Virginia
http://surveys.virginia.edu
Work tel:    434-243-5229       (w/Voice Mail)
CATI Lab:    434-243-5226
Facsimile:   434-982-5536

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: SPSS 15 scripts conversion for 19

Jon K Peck
There is no conversion script for older SaxBasic scripts, because most strings should not require any changes.  There are a few exceptions:

 If you have autoscripts, a small change detailed under the Scripting help is required,
If you are invoking Statistics externally, you need to change the application name to Application16 (even for v17 and later)
The library names used as references by external apps have changed
The recent versions of Basic are locale sensitive.  The main issue that might need to be addressed in that case is that converting strings to numbers uses a locale-sensitive decimal point.

The old Igraph and Map apis were removed.

HTH,

(from France)
Jon Peck
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        "[hidden email]" <[hidden email]>
To:        [hidden email]
Date:        07/07/2011 11:59 PM
Subject:        Re: [SPSSX-L] SPSS 15 scripts conversion for 19
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I 'heard tell' several years ago that there was a program to convert
scripts written for SPSS version 15 (Visual Basic) so they would run
with Sax Basic (or is it WinWrap Basic now)? Is that true and, if so,
where do we get such a program and how well does it convert? These
scripts do things like: send output into Excel tables in a specific
manner, open up a text document in Word and find/replace extra commas so
that the csv file import works correctly, read from the output
significance tests or frequencies and send these back into the syntax.
Any hope of finding a translator that successfully translates those
types of procedures? Or were my ears only hearing what they wanted to hear?

Thanks!

John Lee
--

John Lee P. Holmes
Survey Operations Manager
Acting Senior Research Analyst
Center for Survey Research
A Unit of the Weldon Cooper Center for Public Service
Mess Mail: PO Box 400767
University of Virginia
http://surveys.virginia.edu
Work tel:    434-243-5229       (w/Voice Mail)
CATI Lab:    434-243-5226
Facsimile:   434-982-5536

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD