Displaying 20 results from an estimated 800 matches similar to: "can't find "as.family" function"
2024 Dec 24
1
Extract estimate of error variance from glm() object
... but do note:
glm(lot1 ~ log(u), data = clotting, family = gaussian)
is a plain old *linear model*, which is of course a specific type of
glm, but not one that requires the machinery of glm() to fit. That
is, the above is exactly the same as:
lm(lot1 ~ log(u), data = clotting)
and gives exactly the same sigma() !
(and I would therefore hazard the guess that the poster may
misunderstand
2024 Dec 24
3
Extract estimate of error variance from glm() object
Hi,
I have below GLM fit
clotting <- data.frame(
u = c(5,10,15,20,30,40,60,80,100),
lot1 = c(118,58,42,35,27,25,21,19,18),
lot2 = c(69,35,26,21,18,16,13,12,12))
summary(glm(lot1 ~ log(u), data = clotting, family = gaussian))
Is there any direct function to extract estimate of Error standard deviation?
2010 Sep 02
1
Help on glm and optim
Dear all,
I'm trying to use the "optim" function to replicate the results from the "glm" using an example from the help page of "glm", but I could not get the "optim" function to work. Would you please point out where I did wrong? Thanks a lot.
The following is the code:
# Step 1: fit the glm
clotting <- data.frame(
u =
2010 Feb 15
1
Extract values from a predict() result... how?
Hello,
silly question I suppose, but somehow I can't manage to extract the
probabilities from a glm.predict() result:
> str(res)
Named num [1:9] 0.00814 0.01877 0.025 0.02941 0.03563 ...
- attr(*, "names")= chr [1:9] "1" "2" "3" "4" ...
I got from:
# A Gamma example, from McCullagh & Nelder (1989, pp. 300-2)
clotting <-
2024 Dec 24
1
Extract estimate of error variance from glm() object
vcov(). ?
On Tue, Dec 24, 2024, 8:45 AM Christofer Bogaso <bogaso.christofer at gmail.com>
wrote:
> Hi,
>
> I have below GLM fit
>
> clotting <- data.frame(
> u = c(5,10,15,20,30,40,60,80,100),
> lot1 = c(118,58,42,35,27,25,21,19,18),
> lot2 = c(69,35,26,21,18,16,13,12,12))
> summary(glm(lot1 ~ log(u), data = clotting, family = gaussian))
>
>
2024 Dec 24
1
Extract estimate of error variance from glm() object
I think vcov() gives estimates of VCV for coefficients.
I want estimate of SD for residuals
On Tue, Dec 24, 2024 at 7:24?PM Ben Bolker <bbolker at gmail.com> wrote:
>
> vcov(). ?
>
>
> On Tue, Dec 24, 2024, 8:45 AM Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
>>
>> Hi,
>>
>> I have below GLM fit
>>
>> clotting <-
2024 Dec 24
1
Extract estimate of error variance from glm() object
?deviance ?anova
Bert
On Tue, Dec 24, 2024 at 6:22?AM Christofer Bogaso
<bogaso.christofer at gmail.com> wrote:
>
> I think vcov() gives estimates of VCV for coefficients.
>
> I want estimate of SD for residuals
>
> On Tue, Dec 24, 2024 at 7:24?PM Ben Bolker <bbolker at gmail.com> wrote:
> >
> > vcov(). ?
> >
> >
> > On Tue, Dec 24,
2012 Aug 10
1
plotting profile likelihood curves
Hello,
I am trying to figure out how to plot the profile likelihood curve of a GLM
parameter with 95% pCI's on the same plot. The example I have been trying
with is below. The plots I am getting are not the likelihood curves that I
was expecting. The y-axis of the plots is tau and I would like that axis
to be the likelihood so that I have a curve that maxes at the parameter
estimate. I am
2007 Aug 21
2
Partial comparison in string vector
Hi list members
I have a vector of strings
x=c("w","ex","ee")
And I want to get a logical vector showing the positions where my search
string "e" matches the elements partially, i.e. is at least the left-hand
part of the target strings, i.e. I want to get a vector FALSE TRUE TRUE.
Any ideas?
Thanks
Steve Powell
proMENTE social research
research |
2009 Feb 24
2
Syntax in taking log to transfrom the data to fit Gaussian distribution
Hi,
I have a data set (weight) that does not follow the Gaussian (Normal)
distribution. However, I have to transform the data before applying the
Gaussian distribution. I used this syntax and used log(weight) as:
posJy.model<-glm(log(weight) ~ factor(pos),
family=gaussian(link='identity'), subset=Soil=="Jy"). This syntax COULD NOT
transform the data. But if I transform the
2011 Nov 24
1
what is wrong with this dataset?
> d = data.frame(gender=rep(c('f','m'), 5), pos=rep(c('worker', 'manager',
'speaker', 'sales', 'investor'), 2), lot1=rnorm(10), lot2=rnorm(10))
> d
gender pos lot1 lot2
1 f worker 1.1035316 0.8710510
2 m manager -0.4824027 -0.2595865
3 f speaker 0.8933589 -0.5966119
4 m sales
2007 Aug 02
2
Re : beamer error with R
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070802/04c0f92e/attachment.pl
2012 Mar 22
1
predict () for LDA and GLM
Hi!
I'm using GLM, LDA and NaiveBayes for binomial classification. My training
set is 70 rows long with 32 features, and my test set is 30 rows long with
32 features.
Using Naive Bayes, I can train a model, and then predict the test set with
it like so:
ass4q1.dLDA = lda(ass4q1.trainSet[,1]~ass4q1.trainSet[,2:3])
table(predict(ass4q1.dNB, ass4q1.testSetDF[,2:3]), ass4q1.testSetDF[,1])
2017 Oct 28
2
Function Relevel DOE NOT FOUND
Dear Forum,
Which functions and packages should be installed to make work the function "relevel"?
treatment<-revel(treatment,ref="Db")
Error: no se pudo encontrar la funci?n "revel"
Thank you very much for your help,
Xavier Chiriboga M.
PhD Candidate
Fundamental and Applied Research in Chemical Ecology Lab.
Institute of Biology
University of Neuchatel
2010 Sep 10
0
[LLVMdev] using GCC LTO files as a frontend to dragonegg?
On 10 September 2010 14:37, Marcus Daniels <mdaniels at lanl.gov> wrote:
> Hello,
>
> With GCC, it is possible to compile GIMPLE from an object file back to
> assembly. With Dragonegg, it seems to be a NOP. (See below for a
> comparison.)
>
> This appears it could be a nice way to mix the strengths of GCC and
> LLVM. If it worked.. Should it?
I can't
2012 Mar 29
4
Handling functions as objects
I learnt that functions can be handled as objects, the same way the variables
are. So, the following is perfectly valid:
> f = function(a, b) {
+ print(a)
+ print(b)
+ }
>
> f1 = function(foo) {
+ foo(1,2)
+ }
>
> f1(f)
[1] 1
[1] 2
>
I also know that operators are functions, so, I can call:
> '+'(1,2)
[1] 3
>
However, when I want to pass the
2010 Apr 23
2
Library (tm) Error: could not find function "TermDocMatrix".
Hi List
I have the next code and the error. I have try with other codes and I have
the same problem.
> reut21578 <- system.file("texts", "crude", package = "tm")
> (r <- Corpus(DirSource(reut21578), readerControl = list(reader =
> readReut21578XMLasPlain)))
A corpus with 20 text documents
> (r <- Corpus(DirSource(reut21578), readerControl =
2005 Jul 01
1
Setting lattice boxplot's lines to black
Hi R users.
I'm using the lattice library and I need a print version for my graphics.
How Set I my boxplot's lines to black ????
tpl<-trellis.par.get("plot.line")
tpl$col<-"black"
trellis.par.set("plot.line", tpl)
Don't work. Boxplot's lines aren't black.
Thanks a lot.
This is my script.
library(lattice)
# I set background's
2006 Jul 08
1
KhmaladzeTest
Hello. I am a beginer in R and I can not implement the KhmaladzeTest in the following command. Please help me!!!!!!!!!!!
PD: I attach thw results and the messages of the R program
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0
R es un software libre y viene sin GARANTIA ALGUNA.
Usted puede redistribuirlo bajo ciertas
2007 Oct 31
2
DBI Package
Hello everyone!
Congratulations by this gorgeous software.
My name is Germán Carrillo, I'm writting from Colombia. I don't have much
experience with R, reason why I use the R-GUI (version 2.5.1) on Windows.
I have some problems with DBI package, I want to connect to PostgreSQL
database but I don't know the way to do it.
I was reading the DBI manual and I tried write in my R Console