similar to: syntax for highlighting table rows and columns using R plugin for spss

Displaying 20 results from an estimated 10000 matches similar to: "syntax for highlighting table rows and columns using R plugin for spss"

2009 Nov 13
1
need help formating plot axis to standard dollar formats
I create a lot of plots with a dollar amount as the y-axis. How do I change the formatting so comma and $ are in place. Like $1000,000 or to use common dollar abbreviations like 100K? Chris Anderson Data Analyst Medical Affairs wk: 925-677-4870 cell: 707-315-8486 Fax:925-677-4670 This electronic message transmission, including any attachments, contains information which may be confidential,
2009 Dec 10
1
Need help creating multiple datasets using loops or vectorization
I am trying to create multiple dataset by group like the following using either a loop or vectorization: vocallGp1<-subset(vocallsub, Group==1) vocallGp2<-subset(vocallsub, Group==2) vocallGp3<-subset(vocallsub, Group==3) vocallGp4<-subset(vocallsub, Group==4) vocallGp5<-subset(vocallsub, Group==5) When I create the loop I get the following error:
2009 Dec 15
1
Supressing Scientific Notation
I'm trying to display my deciles without scientific notation, but have not found an option that will allow me to do so. According to web searches, the options(scipen=999) should remove scientific notation, but it seems not too. Does this option work with quantcut function? Is there any other option that can be used? I am using verison 2.10.0. library(gtools) library(gdata)
2009 Dec 10
1
option for multi thread or multi core machines
I notice that R basic installation does not take advantage of multi-thread or multi-core processors. Is there an option for multi-threaded processors? I currently run all of my analysis on thinkpad laptop and most processing is very quick, however, when I run stepAIC with interaction terms it can take a couple of hours to complete. I have tried running the same process and a quad core machine 64
2010 Jan 07
1
Help formating data to display commas
I'm using the following code to create quartile intervals of my dataset and it is working like it is suppose too. In my final output of the data I would like currency amounts to be displayed with commas. I have not found an option either through FormatC or sprintf that will display the data with commas, they only seem to add decimals. Is there a format that will display commas without me
2010 May 04
1
help overlay scatterplot to effects plot
I have a process where I am creating a effects plot similar to the cowles effect example. I would like to add the point estimates to the effects plot, can someone show me the correct syntax. I have included the "R" effects example, so you can show me the correct syntax. Thanks mod.cowles <- glm(volunteer ~ sex + neuroticism*extraversion, data=Cowles, family=binomial)
2010 Jan 22
0
Help changing position of x-axis
I have plotted the dataset below into a stripchart, which gives me the correct graph. However, my x-axis labels are to long to display hortizonal. I would like to display the labels at a 45 degree angle so that all of the labels are displayed. I have used the following text+par code on other graphs and it seems to work fine, but it does not seem to be working on here. I notice when I output the
2011 Feb 04
0
switching y-axis to x-axis for qqmath
This is the qqmath example from the lattice package. I added the scales to the example. I would like to switch the axis and not sure how? Meaning I would like the "height" on the x-axis and the probability on the y-axis. Will you show me the correct syntax for this switch thanks. qqmath(~ height | voice.part, aspect = "xy", data = singer, prepanel =
2010 May 14
2
help color coding map in R
I am trying to create a map with selected states based on highest to lowest mean cost. The following code properly selects the correct states, and the legend is properly color coded with ranges, but the colors per range does not match the state colors. I need help getting the state colors to match the ranges outlined in the legend. I have tried ordering the mean amounts and this correctly creates
2011 Feb 12
4
From SPSS Syntax to R code
There is a code from SPSS Syntax do if sub(ATVK,2,2)="01". comp strata=1. else if sub(ATVK,2,2)>="05" and sub(ATVK,2,2)<="27". comp strata=3. else if sub(ATVK,4,2)>"20" or sub(ATVK,6,2)>"20". comp strata=4. else if sub(ATVK,4,2)>"00". comp strata=2. end if. value labels strata 1 "R 2 "Li" 3 "M" 4
2005 Nov 20
1
use of the 'by' command & converting SPSS ANOVA/GLM syntax into R syntax
I have two questions I would appreciate assistance with: (1) I believe "by" is the command used to split a file. In the following example, "mydat" is the dataframe , "group" the variable I want to split the analysis by & "WK1FREQ,WK2FREQ" the variables attach(mydat) by (GROUP) cor.test (WK1FREQ,WK2FREQ) I have also tried: (by (GROUP) cor.test
2003 Aug 27
4
read.spss (package foreign) and character columns
Dear R users! I am using R Version 1.7.1, Windows XP, package "foreign" (Version: 0.6-1), SPSS 11.5.1. There is one thing I noticed with "read.spss", and I'd like to ask if this is considered to be a feature, or possibly a bug: When reading character columns, character strings seem to get filled with blanks at the end. Simple example: In SPSS, create a file with one
2013 Sep 21
1
Translating recoding syntax from SPSS to R
Colleagues, I am in the process of learning R. I've been able to import my dataset (from Stata) and do some simple coding. I have now come to coding situation that requires some assistance. This is some code in SPSS that I would like to be able to execute in R: if (race eq 1 and usborn=0) confused=1 . if (race eq 2 and usborn=0) confused=1 . if (race eq 1 and usborn=1) confused=0 . if (race
2008 Dec 14
1
re ad.spss (foreign) conflict with SPSS 17 files.
SPSS seems to have changed its default datafile format, resulting in issues for read.spss(). In Windows this results in a warning, in Debian the import completely fails: Debian (R version 2.8.0 (2008-10-20) i486-pc-linux-gnu, foreign_0.8-29) > read.spss("/home/jeroen/samples/Tomato.sav") Error in iconv(names(rval), cp, "") : unsupported conversion from 'CP65001'
2007 Apr 05
1
read.spss (package foreign) and SPSS 15.0 files
Hello, does anyone have experience with reading SPSS Version 15.0 files into R (version 2.4.1, WinXP)? I have long been sucessfully reading SPSS files with read.spss from the wonderful foreign package, but somehow after upgrading from SPSS14 to SPSS15 I seem to have problems. Trying a simple example, where test.sav is a SPSS 15.0 data file consisting of x1=c(1,2,3) and
2007 Jan 26
1
spss.get. Warning with SPSS 14 dataset
I am using spss.get to import an SPSS database "Data.sav", created with SPSS 14 : df1 <- spss.get("C:/temp/Data.sav" , lowernames=TRUE, datevars = c("dateinte")) I am getting this warning. I get the same warning with read.spss. Warning message: C:/temp/Data.sav: Unrecognized record type 7, subtype 16 encountered in system file This is a stupid
2007 Feb 10
1
SAS, SPSS Product Comparison Table
Hi All, My paper "R for SAS and SPSS Users" received a bit more of a reaction than I expected. I posted the link (http://oit.utk.edu/scc/RforSAS&SPSSusers.pdf) about 12 days ago on R-help and the equivalent SAS and SPSS lists. Since then people have downloaded it 5,503 times and I've gotten lots of questions along the lines of, "Surely R can't do for free what [fill in
2004 Aug 14
0
SPSS, social science majors, and R
Hi Roland and folks: Roland's and Susanna's comments were very interesting. I think we need to keep in mind that unlike SPSS, R is more than a statistical package. It's a tool. SPSS does indeed make life easy, particularly for data preprocessing (or data "cleaning"), something that is perhaps not advisable using R (the current versions). Also, I think it's a myth that R
2004 Oct 26
1
read.spss Error reading system-file header
Hi Jake, I had and still have got the same problem. There were two columns in the data frame which contain just missing values. When I deleted those the impord seemed to work, but there is still a warning message. Warning message: C:\test.sav: Unrecognized record type 7, subtype 13 encountered in system file. > Jake Wegelin wrote: > Is there any documentation on what kind of SPSS
2012 Feb 15
1
read.spss issues
Someone supplied me with a small SPSS datafile that caused a buffer overflow and then a crash when reading it in R. It seems like a pretty serious issue to me. Unfortunately I can't supply the dataset at hand and I have a hard time reproducing it with a toy example. But I found at least 2 issues that might be related. The first one is that when the spss dataset has a 'string' variable