drewdogy at u.washington.edu
Wed Feb 10 05:33:36 CET 2010
Thank you for your response. No, NB is not a matrix, and I have no covariates. Here's a very small sample of the data:
I am purely interested in whether an increase in "NB" (for ex: from 0 to 1, or 3 to 4) predicts a directional change with "effect".
Any advise is greatly appreciated.
> On Tue, 9 Feb 2010, Dennis Murphy wrote:
>> Is NB a matrix? See the help page; you also have to specify which
>> are ordinal.
>> On Tue, Feb 9, 2010 at 5:53 PM, Andrew Kosydar
>> <drewdogy at u.washington.edu> wrote:
>> Hello All,
>> I have a dataset with a continuous response variable and
>> an ordered factor predictor. I am very interested in
>> using the package OrdFacReg to run my analysis, but I am
>> having a difficult time deciphering the code and making
>> it work for my dataset. Given that this is a new
>> package, I was unable to find any posts regarding
>> OrdFacReg or examples to use as a template. Normally, I
>> would run the analysis as an anova with the following
>> NB.aov<-aov(effect~NB, data=LH.df)
>> To give you some background, "effect" is a continuous
>> variable and "NB" is ordered 0, 1, 2, 3, 4. I tried
>> each of following code to no avail:
>> ordFacReg(effect, NB)
>> ordFacReg(effect, NB, ordering="i", type="LS")
>> ordFacReg(effect, NB, fact, ordfact, ordering="i",
>> type="LS", intercept)
>> I truly appreciate any insights or suggestions on how to
>> best structure the code in order to perform an analysis
>> with ordFacReg.
>> Most Respectfully,
>> Andrew Kosydar
>> University of Washington
>> Department of Biology
>> 24 Kincaid Hall, Box 351800
>> Seattle, WA 98195
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained,
>> reproducible code.
More information about the R-help