Displaying 20 results from an estimated 300 matches similar to: "problem using MICE with option "lda""
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
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
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
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
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 *
2006 Jun 06
2
Error in inherits(x, "data.frame") : object "Dataset" not found
I have been trying to run a logistic regression using a number of studies.
Below is the syntax, error message & data.
Any advice regarding what I am doing wrong or solutions are appreciated,
regards
Bob Green
> logreg <- read.csv("c:\\logregtest.csv",header=T)
> attach(logreg)
> names(logreg)
[1] "medyear" "where" "who"
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 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
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
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
2020 May 09
1
converting old uucp buffer files to maildir
Hi *,
besides my dovecot maildir structure, that has been migrated from an
Exchange server, I have an even older mail structure in an ancient uucp
style. The program named CrossPoint I used for this isn't wideley known,
but it used so called mpuffer files in a plain text format.
It is the program I still use to write for example this mail.
I wonder if there already exists a program or script
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"
2013 Feb 03
1
Fractional logit in GLM?
Hi,
Does anyone know of a function in R that can handle a fractional variable as the dependent variable? The catch is that the function has to be inclusive of 0 and 1, which betareg() does not.
It seems like GLM might be able to handle the fractional logit model, but I can't figure it out. How do you format GLM to do so?
Best,
Rachael
[[alternative HTML version deleted]]
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:
>
2010 Jul 16
1
Creating symbolic expressions in R
Hello,
I'm trying to do some differential equation modeling in R using the
package 'deSolve.' Briefly, I'm trying to use the law of mass action
(the details of which aren't really important) to structure a vector
of rate equation which will be passed into an ODE function and solved
with associated functions from 'deSolve.' Roughly what this entails
is scanning
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
2010 Jul 21
0
Converting Between Character and Numeric Objects
Hello,
I'm trying to convert a vector of string objects to a numeric object by
initializing the variables with values. I use the function below to scan
through a matrix and create mass action flux relationships:
makeMassActionFluxes = function(sMatrix) {
#Allocate a matrix with identical dimensions as the inputted stoichiometric
matrix
temp = matrix(nrow = dim(sMatrix)[1], ncol =
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.
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