Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-02 Thread Bert Gunter
This is off topic. This list is about R programming, not statistics. The OP should consult statistical resources, such as stats.stackexchange.com . Bert On Tue, Jul 2, 2019, 6:22 PM Abby Spurdle wrote: > > an aggregate analysis (of all aggregated sites) in a way that accounts > for clustering

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-02 Thread Marc Schwartz via R-help
> On Jul 2, 2019, at 8:58 AM, Heather H Kettrey wrote: > > I need to run some conditional logistic regression models on a multilevel > matched dataset (propensity score matched data from multiple research sites). > > > I can pretty easily use the clogistic() function in the Epi package to

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-02 Thread Abby Spurdle
> an aggregate analysis (of all aggregated sites) in a way that accounts for clustering I'm not familiar with this topic. For the benefit of those of us (like me), who are not experts on conditional logistic regression, what does the above statement mean? Hopefully, someone who is more familiar

Re: [R] Sample size required to estimate population variance

2019-07-02 Thread Richard O'Keefe
Does this help? https://www.r-bloggers.com/computing-sample-size-for-variance-estimation/ On Wed, 3 Jul 2019 at 10:23, Thomas Subia via R-help wrote: > Colleagues, > Can anyone suggest a package or code which might help me calculate the > minimum sample size required to estimate the population

Re: [R] Matrix - remove [,1] from top row

2019-07-02 Thread Richard O'Keefe
(1) m[,1] is the first column of matrix (or dataframe) m. (2) The first row of matrix or dataframe m is m[1,] (3) To remove the first row of matrix or dataframe m, do m <- m[-1,] On Wed, 3 Jul 2019 at 08:59, Nicola Cecchino wrote: > Hello, > > I am simply trying to remove the [,1] row from

[R] Sample size required to estimate population variance

2019-07-02 Thread Thomas Subia via R-help
Colleagues, Can anyone suggest a package or code which might help me calculate the minimum sample size required to estimate the population variance? I can do this in Minitab but I'd rather do this in R. Thomas Subia [[alternative HTML version deleted]]

Re: [R] Matrix - remove [,1] from top row

2019-07-02 Thread Richard M. Heiberger
give your a matrix an empty column name. > tmp <- matrix(1:4, 4, 1, dimnames=list(letters[1:4], NULL)) > tmp [,1] a1 b2 c3 d4 > dimnames(tmp)[[1]] [1] "a" "b" "c" "d" > dimnames(tmp)[[2]] NULL > dimnames(tmp)[[2]] <- "" > tmp a 1 b 2 c 3 d 4 On Tue, Jul 2, 2019 at 5:09 PM

Re: [R] Matrix - remove [,1] from top row

2019-07-02 Thread ruipbarradas
Hello, That is not a row, what you seem to have is an object of class "matrix" and when it's printed it prints the column names or [,1] [,2] etc if there aren't any colnames. So your matrix has just one column and 4 rows with rownames 'date', 'Peeps', 'days', 'worn'. Hope this helps,

[R] Matrix - remove [,1] from top row

2019-07-02 Thread Nicola Cecchino
Hello, I am simply trying to remove the [,1] row from a matrix. I tried to search Google to see if I could find how that is removed, but could not find a way to do it. So I have the following: [,1] date 2019-7-01 Peeps 5 days 7 worn 9 this is

[ESS] ESS SAS not starting with Emacs 26 and conda

2019-07-02 Thread Brian Wozniak via ESS-help
I just switched to emacs 26 and updated my ess to 18.10. When my company switched versions of emacs (from 24 to 26) we started using conda, and the interactive SAS stopped working. When I do M-x SAS, I get a read-only shell buffer, and none of the *SAS* buffers show up. I'm not sure why they

Re: [R] read.xls without row number, column numbers, or factors

2019-07-02 Thread David Carlson
Converting a one-row data frame to a list is not difficult, but there are several ways to represent the data as a list. Here is a possibility: > dta <- data.frame(t(LETTERS[1:10]), stringsAsFactors=FALSE) > dta X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 1 A B C D E F G H I J > dta.lst <-

Re: [R] Read Unicode text (*.txt)

2019-07-02 Thread William Dunlap via R-help
Try changing encoding="UTF-16" to fileEncoding="UTF-16". Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Jul 1, 2019 at 9:30 PM javad bayat wrote: > Dear all; > I use your suggestion but I gave the same warning messages. I changed the > file name (Data.csv). > " >

Re: [R] read.xls without row number, column numbers, or factors

2019-07-02 Thread Ivan Krylov
On Mon, 01 Jul 2019 20:13:34 -0400 ast...@mathnmaps.com wrote: > Is there a way to use read.xls to copy a portion of a single row of > an XLS spreadsheet to a list, without getting assigning row and > column numbers, and, if the data consists of strings, without > assigning levels? If you mean

Re: [R] Blocking and Nesting ANOVA

2019-07-02 Thread Bob O'Hara
No, it isn't correct I'm afraid. From what you describe, Population isn't nested within Sex or Maturity. Population 1 can contain both male and female trees, as well as trees of different ages. A simpler model would be lm (PAC ~ Season + Population + Sex + Maturity) So that Sex and Maturity

[R] Blocking and Nesting ANOVA

2019-07-02 Thread Eleftheria Dalmaris
Dear all, I have a blocking and nested design. I have Season (3 levels; three different collection periods). That's my Block. I have three Populations that I sampled from (Plant material) >From each population, I sampled 30 trees. Each Tree is either Female or Male or Unidentified (Sex factor)

[R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-02 Thread Heather H Kettrey
I need to run some conditional logistic regression models on a multilevel matched dataset (propensity score matched data from multiple research sites). I can pretty easily use the clogistic() function in the Epi package to run conditional logistic regression models on each separate/nested

Re: [R] Read Unicode text (*.txt)

2019-07-02 Thread Olivier Crouzet
Hi Javad, I could not make sense of the data structure associated with the csv file as it is copied in your previous message. Would you mind sending a link so one can download your csv file directly (or at least the first few lines) so people can check the exact properties of your file? Yours.