Displaying 20 results from an estimated 3000 matches similar to: "multinomial logit estimation"
2007 Jul 28
4
beta regressions in R
Good morning,
Does anyone know of a package or function to do a beta regression?
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
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
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
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 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
2006 Feb 22
2
does multinomial logistic model from multinom (nnet) has logLik?
I want to get the logLik to calculate McFadden.R2 ,ML.R2 and
Cragg.Uhler.R2, but the value from multinom does not have logLik.So my
quetion is : is logLik meaningful to multinomial logistic model from
multinom?If it does, how can I get it?
Thank you!
ps: I konw VGAM has function to get the multinomial logistic model
with logLik, but I prefer use the function from "official" R
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
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
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,
2010 Jul 05
1
Memory problem in multinomial logistic regression
Dear All
I am trying to fit a multinomial logistic regression to a data set with a size of 94279 by 14 entries. The data frame has one "sample" column which is the categorical variable, and the number of different categories is 9. The size of the data set (as a csv file) is less than 10 MB.
I tried to fit a multinomial logistic regression, either using vglm() from the VGAM package or
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
2007 Jul 16
3
looking at a function's code
Good morning,
I'd like to look at the code for the R function head. When I type just the word head, I get back
function(x, ...)
UseMethod("head")
<environment: namespace:utils>
I expected to see several lines of R code. Any suggestions?
Thanks,
Walt Paczkowski
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 -
2009 Sep 04
1
Multinomial and Ordinal Logistic Regression - Probability calculation
Dear all,
I am new to R and would like to run a multinomial logistic regression on my dataset (3 predictors for 1 dependent variables)
I have used the vglm function from the VGAM package and got some results. Using the predict() function, I obtained the probability table I was looking for. However, I would like to fully understand how the predict() function generates the probabilities or in
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
2008 Jan 17
4
things that are difficult/impossible to do in SAS or SPSSbut simple in R
Good morning,
I use SAS and R/S-Plus as my primary tools so I have a lot of experience with these programs. By far and away, SAS is superior for handling the "messy" datasets, but also the very large ones. I work at times with datasets in the hundreds of thousands (and on occasion, millions) of records. SAS, and especially PROC SQL, are invaluable for this. But once I get to