Displaying 20 results from an estimated 1100 matches similar to: "Error in inherits(x, "data.frame") : object "Dataset" not found"
2006 Jun 04
1
logistic regression enquiry
I am hoping for some advie regarding the following scenario.
I have data from 26 studies that I wanted to analyse using logistic
regression. Given the data was from studies and not individuals I was
unsure how I would perform this in R. When analysed in SPSS, weighting was
used so that each study was included twice. Where "use" occurred, a value
of 1 was assigned and was weighted
2007 Jan 09
1
logistic regression in R - changing defaults
Hello,
I was hoping for some advice in changing 2 defaults in a logistic regression.
1. It looks like the first category is the reference category? In the
following syntax 'where' has 4 levels, how can I make the reference
category the third category?
model<- glm(cbind(sucesses, failures) ~ where + who + firstep + dxnarrow +
age + sex + medyear, family = binomial, data=life.use)
2005 Feb 10
1
skip missing values in plots
I really like these Trellis graphics but how do I get this code to
skip the missing?
logreg<-read.csv("logreg.csv", header=TRUE, sep=",", na.string=" ")
attach(logreg)
bwplot(yesno~bc_pcb_tot |varlist, data=logreg, main="Box Cox PCB
transformation", auto.key=TRUE, fontfamily = "HersheySans" )
Dean Sonneborn M.S.
Public Health Sciences *
2008 Oct 14
1
library MICE warning message
Hello.
I have run the command
imp<-mice(mydata, im=c("","pmm","logreg","logreg"),m=5)
for a variable with no missing data, a numeric one and two variables with binary data.
I got the following message:
There were 37 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: In any(predictorMatrix[j, ]) ... : coercing argument of
2005 Jul 19
2
Regression lines for differently-sized groups on the same plot
Hi there,
I've looked through the very helpful advice about adding fitted lines to
plots in the r-help archive, and can't find a post where someone has offered
a solution for my specific problem. I need to plot logistic regression fits
from three differently-sized data subsets on a plot of the entire dataset.
A description and code are below:
I have an unbalanced dataset
2008 Oct 17
1
Package
Hi,
I was trying to plot the logistic regression from a regression "logreg"
I just ran.
I downloaded the "car" package from the R website and went to Packages
-> install package from local zip file
I checked in my library file and the package is there. I restarted R.
I then ran the command:
reg.line(logreg,col=palette()[2], lwd=2, lty=1)
And I get the error:
Error: could
2008 Mar 18
1
how to reset slogic.f file
Hi there:
recently i try to use LogicReg package for a tree model(logistics fit )
. i list my code and error below:
> dim(model.dat)
[1] 48000 745
> fit1 <- logreg(resp = model.dat[,745], bin=model.dat[, 9:700], type = 3,
select = 3, ntrees = c(1,2), nleaves=c(1,7), )
Insufficient declaration
LGCn1MAX in logreg() is 20000
LGCn1MAX should be at least 48000
Please fix and
2003 Dec 05
3
Odds ratios for categorical variable
Dear R-users:
How does one calculate in R the odds ratios for a CATEGORICAL predictor
variable that has 4 levels. I see r-help inquiries regarding odds ratios
for what looked like a continuous predictor variable. I was wondering how
to get the pairwise odds ratios for comparisons of levels of a categorical
predictor variable. I can't seem to get the correct output using:
>
2012 Jan 10
1
grplasso
I want to use the grplasso package on a data set where I want to fit a linear
model.? My interest is in identifying significant?beta coefficients.? The
documentation is a bit cryptic so I'd appreciate some help.
?
I know this is a strategy for large numbers of variables but consider a simple
case for pedagogical puposes.? Say I have?two 3 category predictors (2 dummies
each), a binary
2005 Feb 23
1
Problem saving logic regression result equation to disk file
I want to get some "simple" logic regression examples to work before
exploring a hard problem.
I can get results, but I'm having some problems using "cat" to save the
logic regression equation to a disk file.
Consider this:
# Simple Logic Regression Example
# efg, 23 Feb 2005
library(LogicReg)
# Create simulated data with known logic equation:
# "noise"
2008 Oct 23
0
error when using logistic.display within a loop
Dear list,
I tried to apply the logistic regression to different response variables from a dataframe and would like to store the results using the function logistic.display from the "epicalc" package in a list, but got an error message "Error in eval(expr, envir, enclos) : y values must be 0 <= y <= 1". All the response variables have value of 0 or 1. It worked
2011 May 11
1
Recompile a package
Hello, dear R community.
The thing is that I am not in the least a developer, neither do I want to
create a package of my own.
But recently I have found a package LogicForest, which is in the base
written in Fortran I think. And well,
in its manual it is written that there are several parameters there that had
had to be "hard coded", but which
in essence actually have no restrictions.
2004 Sep 22
5
Issue with predict() for glm models
[This email is either empty or too large to be displayed at this time]
2008 May 19
0
How to get confidence interval and coefficient in Logic Regression
sorry to bother everyone.
i have question to get the coefficient and confidence interval in Logic
Regression with Logistic model. below i list the R code
X <- matrix(as.numeric(runif(400) < 0.5), 50,8)
colnames(X) <- paste("X", 1:ncol(X), sep="")
rownames(X) <- paste("case", 1:nrow(X), sep="")
# Define expected result: Y = (NOT X1) AND X5
Y
2008 Jul 09
0
problems using mice()
R 2.7.2
PPC Mac OS X 10.4.11
library mice 1.13.1
I try to use mice for multivariate data imputation.
My variables are numeric, factors, count data, ordered factors.
First I created a vector for the methods to use with each variable
ImpMethMice<-c(rep("logreg", 62), rep("polyreg",1), rep("norm",12),
rep("polyreg",12))
next step was
2007 May 17
1
MICE for Cox model
R-helpers:
I have a dataset that has 168 subjects and 12 variables. Some of the
variables have missing data and I want to use the multiple imputation
capabilities of the "mice" package to address the missing data. Given
that mice only supports linear models and generalized linear models (via
the lm.mids and glm.mids functions) and that I need to fit Cox models, I
followed the previous
2004 Sep 23
0
followup: Re: Issue with predict() for glm models
Could you just use
lines(newX, myPred, col=2)
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Paul Johnson
Sent: Thursday, September 23, 2004 10:3 AM
To: r help
Subject: followup: Re: [R] Issue with predict() for glm models
I have a follow up question that fits with this thread.
Can you force an overlaid plot
2012 Jul 06
4
differences between survival models between STATA and R
Dear Community,
I have been using two types of survival programs to analyse a data set.
The first one is an R function called aftreg. The second one an STATA
function called streg.
Both of them include the same analyisis with a weibull distribution. Yet,
results are very different.
Shouldn't the results be the same?
Kind regards,
J
--
View this message in context:
2007 Nov 30
0
problem using MICE with option "lda"
Hi
I am unable to impute using the MICE command in R when imputing
a binary variable using linear discriminant analysis. To illustrate my
problem I have created a dataset, which consists of 1 continuous and 1
binary variable. The continuous variable is complete and the binary
variable is partially observed.
I am able to impute using the MICE command where the imputation methods is
logistic
2009 Apr 04
0
multiple imputation
Hi,
I'm relatively new to R and it'll be great if someone can help me with what
I'm doing here.
I am trying to do multiple imputation on my dataset, but I'm not quite sure
which function to use as my dataset contains dichotomous variables.
Here's an outline of what i've done so far, and i'm not sure if i'm doing it
right, and where to go from here. It'll be