Displaying 20 results from an estimated 1000 matches similar to: "beta regressions in R"
2005 Jul 28
4
Running Internet Explorer from Withing R
Good morning,
Is it possible to open an html file using IE but from within R? I wrote a small function to generate tables in html but I'd like to write another function to call IE and open the html file.
Thanks,
Walt Paczkowski
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
(V) 609-936-8999
(F) 609-936-3733
2007 Mar 08
1
reading a text file with a stray carriage return
Hi,
I'm hoping someone has a suggestion for handling a simple problem. A
client gave me a comma separated value file (call it x.csv) that has
an id and name and address for about 25,000 people (25,000 records).
I used read.table to read it, but then discovered that there are stray
carriage returns on several records. This plays havoc with read.table
since it starts a
2009 Sep 24
2
RODBC problem
Hi,
I'm attempting to use the RODBC package on Windows Vista to import an
excel spreadsheet. The spreadsheet has three worksheets the last of
which is blank. Following an example in Phil Spector's book (p. 34),
after creating a connection named con I did the following:
> con
RODBC Connection 3
Details:
case=nochange
DBQ=c:\temp\test.xls
DefaultDir=c:\temp
2010 Aug 15
5
reading a text file, one line at a time
Hi,
I have an upcoming project that will involve a large text file. I want to
1. read the file into R one line at a time
2. do some string manipulations on the line
3. write the line to another text file.
I can handle the last two parts. Scan and read.table seem to read the
whole file in at once. Since this is a very large file (several hundred
thousand lines), this is not
2010 May 21
1
viewing function code
Hi,
I want to view the code for the function confint in the stats package.
Typing just confint doesn't work. How can I view the code?
Thanks,
Walt
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
________________________
(V) 609-936-8999
(F) 609-936-3733
walt at dataanalyticscorp.com
www.dataanalyticscorp.com
2009 Jul 27
2
Multiple graphs
Hi,
I wrote a simple master function, run(), that has inside six qplot
functions. The goal is to type run() and have all six graphs appear as
separate windows so that I can copy them into PowerPoint for a client.
When I type run(), only the last graph appears, the first five
apparently being overwritten. How do I get all six in separate windows,
ready for copying?
By the way, is the a way
2012 Jul 19
3
median comparison tests
Hi,
A client has a consumption measure on each of four products. The sample
size is 75. The consumption distributions are highly skewed for each
product. He would like a pairwise comparison test of the products, much
like Tukey's HSD but using medians rather than means. Is there such a
median comparison test in R?
Thanks,
Walt
________________________
Walter R. Paczkowski, Ph.D.
2011 Jul 21
2
installing Rgraphviz
Hi,
I attempted to install Rgraphviz but ran into a problem. It requires
graphviz 2.20.3. I have this and installed it but the Windows 7 system
path variable has to be modified to include the path to the graphviz bin
file. How do I do this on Windows 7? It's been a long time since I had
to change the path variable.
Thanks,
Walt
________________________
Walter R. Paczkowski, Ph.D.
2013 Jan 07
3
pattern matching
Hi,
I have a simple question. Suppose I have a string "x$Expensive". I want
to find the position of the $ in this string; i.e., I want a function
that returns 2. I tried grep, regexpr, etc with no luck, unless I'm
just using them incorrectly. Any suggestions?
Thanks,
Walt
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro,
2011 Sep 28
1
using the system command
Hi,
I started playing around with a function for using StatTransfer (version
10) for importing data. This started as a simple task but it's not
working and so now I'm very frustrated. I'm using R version 2.13 on
Windows 7.
The function, called fn.importData, is:
function(file = NULL, type = NULL){
##
## create statTransfer command file -
2013 Jan 02
2
listing all test functions in base R
Hi,
Is there a way to create a list of all statistical test functions in
base R? For example, there's t.test, ks.test, chisq.test, etc. I'd
like to create a list of these test names because I keep looking for
different tests but never know what's available. I'm thinking of a
regular expression statement but I'm not sure how this would work for
functions. Or is there a
2011 Jun 21
1
Estimating choice models at the individual level
Hi,
I have a discrete choice model to estimate for a client that I
originally planned to estimate as an aggregate model using a clogit
routine. Now the client is asking for results for many segments of the
respondents which would mean, if I stayed with my original plan, I would
have to estimate a large number of models. I could certainly do this,
but I'm thinking that it would be
2007 Jul 19
2
multinomial logit estimation
Good morning,
I'd like to estimate a simple multinomial logit model in R (not a McFadden conditional logit). For instance, I'd like to estimate the probability of someone having one of eight titles in a company with the independent variables being the company characteristics. A binary logit is well documented. What about the multinomial?
Thanks,
Walt Paczkowski
2005 Nov 14
2
Using pakage foreign and to import SAS file
Hi,
I'm struggling with foreign to import a SAS file. The file, for lack of imagination, is d.sas7bdat and is in my root directory (c:\) under Windows XP. When I type
read.ssd("c:\\", "d")
which I think I'm suppose to enter, I get
SAS failed. SAS program at C:\DOCUME~1\Owner\LOCALS~1\Temp\Rtmp32758\file19621.sas
The log file will be file19621.log in the current
2005 Nov 26
1
Using an editor with R
Hello,
I changed the setting in options$editor to allow me to use my favorite editor. In R 2.1.1 on Windows XP, I entered at the command line:
options(editor="c:\\program files\\winedit\\winedit.exe")
When I edited a function, say test, using fix(test), the editor opened perfectly. But, when I saved the file and closed the editor, the R gui screen was white, blank, and completely
2009 Feb 24
0
R, Shapley Values and TURF
Hi,
I'm looking for any information on calculating and using Shapley Values
in a TURF context. A paper was presented at an S-Plus conference about
this:
Conklin M., Lipovetsky S. Modern Marketing Research Combinatorial
Computations:
Shapley Value versus TURF Tools, Proceedings of 1998 International
S-Plus User
Conference, Oct. 8-9, 1998, Washington, DC, MathSoft Inc.
Does anyone have
2009 Aug 23
1
ggplot2 and mtext question
Hi,
In R base graphics, the function mtext can be used to add text to the
margins of a plot. This is very useful for adding notes (such as data
source, sample size, etc.) to the bottom of a graph. How can such notes
be added to the bottom of a graph when using ggplot2?
Thanks,
Walt
--
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
2009 Sep 18
2
Emacs and ESS help
Hi,
I decided to try emacs and ess with R, but to no avail. How are these
things suppose to work with R - or work, period? I downloaded the
latest windows versions of each and installed them as the documentation
says. But then the documentation for ess says to add (require
'ess-site) to /.emacs and restart emacs. Where is /.emacs???? I opened
the ess-site.el file and it also says to
2007 Aug 06
0
Sample size for logit model
Hi,
I'm hoping someone has some insight about sample size and logit
estimation that could help me. I inherited a logit model from a
client in the direct marketing area. The previous consultant used
approximately 143,800 observations in the training data set, of which
only 50 (0.03%) were the target ( = 1) value for the dependent
variable. The
2007 Apr 23
5
Changing working directory
Good morning,
I keep copies my .RData file in different directories for different projects on Windows XP. There is an icon on my desktop for each project so all I have to do is click on the icon to open R for a specific project, i.e. a specific .RData file. How do I change to another .RData file from within R without first closing R?
Thanks,
Walt Paczkowski