Home > Error > Error # 4311 Spss

Error # 4311 Spss

I've been frustrated trying to add leading zeroes to numerical data and converting them into four-digit strings, with zeroes if they are only three digits long (i.e. 600 into a string We recommend you follow along by downloading and opening revenue_expenses.sav. compute f_qualfreq = concat(rtrim('pfaithsqfr'), " || " , rtrim('pfaithsqfY')). Exe. More about the author

If character is comma, convert to dot.if #char = ',' #char = '.'.*6. If you can help, chime in, just follow these guidelines. Show: 10 25 50 100 items per page Previous Next Feed for this topic För att kunna använda diskussioner i Google Grupper måste du aktivera JavaScript i webbläsarinställningarna och sedan uppdatera When offering help, you don't have to be an expert to answer a question.

Other major new updates include: Now fully compatible with recent IBM SPSS Statistics releases. Mitt kontoSökMapsYouTubePlayNyheterGmailDriveKalenderGoogle+ÖversättFotonMerDokumentBloggerKontakterHangoutsÄnnu mer från GoogleLogga inDolda fältSök efter grupper eller meddelanden SPSSX Discussion Search everywhere only in this topic Advanced Search seeking help deleting characters from a string variable - reply Hi all I have a database with economical and social data (200,000 cases), this data is divided by economic,... 0 0 07/16/13--09:20: How do I estimate mean WTP with Binary Logistic Which language is best for making games/websites/etc?

We'll make this clear by converting expenses with the syntax below. *1. Convert to numeric.alter type copy_expenses(f7.2).*4. Learn how to write the perfect question. Can someone help?

SPSS Convert String to Numeric Variable Introduction Many SPSS tutorials suggest converting string to numeric variables by simply running ALTER TYPE. From: SPSSX(r) Discussion on behalf of Richard Ristow Sent: Wed 4/29/2009 5:50 PM To: [hidden email] Subject: Re: seeking help deleting characters from a string variable At 10:24 PM 4/28/2009, Thara Using SPSS NUMBER function has several advantages over ALTER TYPE. Go Here As pointed out by all of you I added the period after string region (A20).

You won't be able to vote or comment. 012Anyone here familiar with SPSS syntax? (self.learnprogramming)submitted 6 years ago by NightroGlycerineI'm pretty new to SPSS coding (and coding in general), and I need some help with compute f_qualalc = concat(rtrim('pfthsinalc'), " || " , rtrim('pfthsYalc')). Move system missing values to top.sort cases copy_revenue.*5. COMPUTE REGION = SUBSTR (polregx, 7, 20).

Visual inspection of system missings seems ok.sort cases copy_expenses.*3. The substring function is used to break apart each value of ssn. Cheers Dorraj Date: Wed, 29 Apr 2009 12:24:43 +1000 From: [hidden email] Subject: seeking help deleting characters from a string variable - reply to Viann, Melissa and Nirit To: [hidden email] Hence I tried this as an alternative however i still get the same error message.

COMPUTE REGION = SUBSTR (polregx, 7, 20). We will return to this issue shortly. >Warning # 1111 >A numeric field contained no digits. Loop through all characters in expenses.loop #pos = 1 to char.length(expenses).*4. execute.

Good Comments: Abusive, racist, or derogatory comments towards individuals or groups are not permitted. Pass each character into scratch variable.compute #char = char.substr(expenses,#pos,1).*5. Text: ) >The string argument required for the function specified was not supplied. >This command not executed. More importantly I have checked the variable polregx and it is defined as numeric with value labels.

execute. I have tried paired t-test, but it can only test the... 0 0 07/17/13--09:52: Different results using the same test Contact us about this article I ran a number of 4x3 STRING REGION (A20).

After making a new copy of expenses, we could use COMPUTE with REPLACE a couple of times as in compute copy_expenses = replace(copy_expenses,'A','').

  1. The F format means "standard numeric" in SPSS.
  2. argument) indicates the position within the string variable were SPSS is to begin, and the second number tells SPSS how many characters to take.
  3. They seem to be values like A4 or N5.2 or F5 or stuff like that, but I don't understand what they mean, or what each character signifies.
  4. compute fullname = concat(rtrim(fname), " ", lname).
  5. Error # 4310 in column 28.
  6. T Test4.

Thanks in advance Reply With Quote 06-10-201308:54 AM #2 Robert Jones View Profile View Forum Posts Location Gloucester Posts 74 Thanks 0 Thanked 12 Times in 12 Posts Re: Numeric to Windows Live Messenger Thara Vardhan Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: thanks DorraJ Hi Dorra Thanks for compute region =NUMBER(substr(polregx,7,20),F20). So specifying it in ALTER TYPE indeed converts the variable to numeric.

Finally, we use the list command again to see the results. reason: substr is meant for string variables only and it is use to shorten the length of a string variable. Text: ) The string argument required for the function specified was not supplied. This command not executed.

How to cite this page Report an error on this page or leave a comment The content of this web site should not be construed as an endorsement of any particular The syntax below does just that.Those who are interested in how it works may want to look up scratch variable, LOOP, SUBSTR, CONCAT and INDEX. So you probably want this (untested): STRING REGION (A20). I have developed a binary logistic regression for my dependent variable (treat water or not=categorical & not normally distributed) and... 0 0 07/17/13--02:19: Can I use repeated measures for paired data