similar to: Pairwise deletion in a linear regression and in a GLM ?

Displaying 20 results from an estimated 8000 matches similar to: "Pairwise deletion in a linear regression and in a GLM ?"

2011 Nov 04
4
How to delete only those rows in a dataframe in which all records are missing
Hi, Imagine I have the following data frame: > a <- c(1,NA,3) > b <- c(2,NA,NA) > c <- data.frame(cbind(a,b)) > c a b 1 1 2 2 NA NA 3 3 NA I want to delete the second row. If I use na.omit, that would also affect the third row. I tried to use a loop and an ifelse clause with is.na to get R identify that row in which all records are missing, as opposed to the first
2013 Jul 22
1
about mix type clust algorithm
Hi: I have tried to find the appropriate clust algorithm for mixed type of data. The suggested way I see is: 1. use daisy to get the dissimilarity matrix 2. use PAM/hclust by providing the dissimilarity matrix, to get the clusters but by following this, when the data set grows bigger say 10,000 rows of data, the dissimilarity matrix will be O(n^2), and out of memory will occur. I am
2013 Jul 05
1
kruskal.test followed by kruskalmc
Hi all, After running kruskal.test I have got results (p<0,005) pointing to reject the hypothesis that the samples were draw from the same population. Howerver when I run the kruskalmc there are no significant differences in any of the multiple comparisons. Is that possible? Some clarification? Thanks, Humber <https://sites.google.com/site/humberandrade> [[alternative HTML version
2013 Mar 22
4
error while extracting the p-value from adf.test
Hello all, I tried to extract the p-value from adf.test in tseries; however, I got the error message such as > ht=adf.test(list.var$aa) > ht$p-value Error in ht$p - value : non-numeric argument to binary operator > ht Augmented Dickey-Fuller Test data: list.var$aa Dickey-Fuller = -2.3147, Lag order = 4, p-value = 0.4461 alternative hypothesis: stationary > ht$data [1]
2012 Nov 09
1
predict.zeroinfl not found
Hi Just a quick problem that I hope is simple to resolve. I'm doing some work with zero inflated poisson models using the pscl package. I can build models using zeroinfl and get outputs fom them with no problem, but when I try to use the predict.zeroinfl function, I get Error: could not find function "predict.zeroinfl". I was using an older version of R, but still had the same
2012 Nov 08
1
Dabbling with R5 setRefClass - Inheritance problems
Hello, I wrote a class like so: > rcfdpsuperclass <- setRefClass( > Class="rcfdpsuperclass", > fields = list( > RcfpdVersion = "character"), > methods = list( > initialize = function(){ > 'Populates fields with defaults and lock as appropriate' > initFields( > RcfpdVersion =
2013 Sep 03
1
ESEM in R
Hello R experts, Is there any possibility to perform exploratory structural equation modeling (ESEM) in R? Which package should I use? Thanks a lot for help, Krzysztof
2012 Nov 30
1
Little's Chi Square test for MCAR?
Is there any further development in R to identify the missing data Mechanism? Would you please help ? ======= Please find our Email Disclaimer here-->: http://www.ukzn.ac.za/disclaimer ======= [[alternative HTML version deleted]]
2013 Apr 17
1
Anova unbalanced
Hello everybody, I have got a data set with about 400 companies. Each company has a score for its enviroment comportment between 0 and 100. These companies belong to about 15 different countries. I have e.g. 70 companies from UK and 5 from Luxembourg,- so the data set is pretty unbalanced and I want to do an ANOVA. Somthing like aov(enviromentscore~country). But the aov function is just for
2013 Apr 11
1
Calculating std errors of marginal effects in interactions
Hi! I've been looking for a way to calculate std errors of marginal effects when I use interaction terms, but with no success. I pretty much have two cases: continuous variable * continuous variable, and continuous variable * binary variable. In both cases, I know how to calculate the marginal effects, even with simulation. But I still can't figure out how to calculate the std errors of
2013 Feb 07
1
coplot question
In R I have 3 variables x,y and z that contain: | x y z [1,] 1 12 122 [2,] 1 13 113 [3,] 1 11 111 [4,] 3 13 123 [5,] 4 14 134 [6,] 5 15 155| I am creating a coplot with the following syntax: |given.depth<- co.intervals(z, number=3, overlap=.1) coplot(x~y|z,pch=19,col="red",cex=1.5,given.values=given.depth)| The resulting plot however has has bars in the
2012 Nov 07
1
Welch Two Sample T-Test
I know when I enter this into R: > x = c(15, 10, 13, 7, 9, 8, 21, 9, 14, 8) > y = c(15, 14, 12, 8, 14, 7, 16, 10, 15, 12) > t.test(x,y,alt="less",var.equal=TRUE) it shows: Two Sample t-test data: x and y t = -0.5331, df = 18, p-value = 0.3002 alternative hypothesis: true difference in means is less than 0 95 percent confidence interval: -Inf 2.027436 sample
2012 Nov 07
2
New Learner
Hi Experts, As i am a new in this forum, let me introduce myself:- i am Debaranjan, from India, Assam. I have heard many things about R and its statistical Magic feature. i am really have nothing knowledge about R language nor have ever used before. i am only a nursery in R. please help me in learning R. I have gone through many study material for R but have gain nothing
2013 Apr 09
4
Boxplot Labels OK
Dear all, I have just sent an enquiry but probably I hadn’t expressed myself properly. Could anyone help me with the following? When I run the code on my data I get a boxplot with outliers identified by numbers 200 & 201. However, what I would like is to label these outliers with their corresponding “DATA$num” values of the data frame. In this example, the outliers should be labelled as:
2013 Jul 12
3
Needing help for excluding vector elements
Hello, R for Dummies. How can I exclude the first 1000 values of a vector (length 12000)? More generally all the values up to the ith? Thanks for your help, Dr Olivier Charansonney Cardiologue Centre Hospitalier Sud-Francilien, Corbeil-Essonnes, France [[alternative HTML version deleted]]
2013 Jan 31
1
lower corner cumulative probability
Dear useRs, With the following set of command i managed to create the copula density ================================================ >library(MASS) >library(evd) >X<-matrix(sample(1:3000), ncol=2) >U=cbind(rank(X[,1])/(nrow(X)+1),rank(X[,2])/(nrow(X)+1)) > mat1=kde2d(U[,1],U[,2],n=150) image(mat1$x,mat1$y,mat1$z,col= rev(heat.colors(1500)),xlab="",ylab="")
2012 Nov 26
3
How to count the number of different elements in a column
Hello, Suppose that i have a dataframe a <- read.dta("banca_impresa.dta") i have a column with 17900 obs like 1 2 3 1 6 7 8 3 4 4 and i want to know the number of the different values so in this case it would be 7 How can i do? Thank you -- View this message in context: http://r.789695.n4.nabble.com/How-to-count-the-number-of-different-elements-in-a-column-tp4650825.html Sent
2013 Feb 21
2
Arimax with intervention dummy and multiple covariates
Hi I'm trying to measure the effect of a policy intervention (Box and Tiao, 1975). This query has to do with the coding of the model rather than with the particulars of my dataset, so I'm not providing the actual dataset (or a simulated one) in this case, apart from some general description. The time series are of length n=34 (annual observations between 1977 and 2010). The policy
2013 Jan 18
2
columns called X rename Y
I have a data. frame to which you want to change the names to some of their columns. For example: > seba <- data.frame ('constant' = 3, 'numbers' = 1: 10, 'letters' = LETTERS [1:10], otros = 2:11) List their names: > names (Seba) [1] "constant" "numbers" "letters" I want to rename c the column called constant and b the column
2012 Nov 08
1
A panel of contour plots through a iteration process
Dear all, as you can see from the code I want to create *a panel of 11 contour plots through a iteration process*. I found a thread that address the issue of plotting many contour.plots in the same device, but it does not address my problem! I emphasize that the 11 contour plots must be appeared in the same device through an iteration process and NOT individually! par(mfrow=c(4,3)) # I want them