How?
The code bellow, illustrate the examination of a model:
fit = lm(y ~ x1 + x2, data=mydata2) # Your model
summary(fit) # The summary of the results
vcov(fit) # The covariance matrix for model parameters
Also, at the following link [1] you can find a full tutorial about Logistic Regression in R language.
[1] http://ww2.coastal.edu/kingw/statistics/R-tutorials/logistic.html
Dimitris
A slight edit to Dimitris' code, to make it a logistic regression, use:
fit = glm(y ~ x1 + x2 + xn, family='binomial', data=mydata)
As a new R user, I strongly recommend to use help commands like
> ?lm
> ?glm
?function_name give you information about the parameters and the objects that the program creates, including the covariance matrix...
you should use glm function and after estimation the model parameters, vcov function obtains covariance matrix of estimated parameters. This cod is an example for poisson response:
Poi
Seeking answer.........
08 September 2014 1,989 0 View
Which software (XL/SPSS/LISREL/STATISTICA/etc...) should I use?
01 February 2014 5,417 2 View
.
01 February 2014 4,544 1 View
I would like to learn more about SPSS and Its application especially in regards to data analysis. Please suggest me how I can learn more about it. Thank you so much.
11 August 2024 9,101 4 View
I have reverse sequences (AB1 format), can I base on reverse DNA sequences to perform nucleotide alignment, convert nucleotides to amino acids and deposit the sequence in GenBank database?
11 August 2024 5,138 1 View
Hello, Why do i see this baseline drift when i compare my blank (black) to the sample (blue)? Any suggestions as to why this happened? Thank you!
11 August 2024 3,770 4 View
Willett, Shenoy et al. (2021) have developed a brain computer interface (BCI) that used neural signal collected from the hand area of the motor cortex (area M1) of a paralyzed patient. The...
10 August 2024 7,180 0 View
I'm currently exploring the application of Python in textile engineering, specifically in areas like data analysis, process automation, and the development of smart textiles. I'm interested in...
10 August 2024 7,429 2 View
How can I use the cif data obtained from rietveld refinement extracted via gsas2, for microstructural analysis using ETEX software?
09 August 2024 7,718 0 View
Let's say we have a standard, regular hexagonal honeycomb with a 3-arm primitive unit cell (something like the figure attached; the figure is only representative and not drawn to scale). The...
07 August 2024 1,937 1 View
A fungal strain was treated with nanoparticles. We want to do an environmental SEM analysis. So could anyone share your views on preparing the sample? Thank you.
07 August 2024 5,307 1 View
Hi, I have a question about normalizing the MTT OD values for doing the statistical analysis. So, if we have 3 different plates and we call them 3 different replicates, so, first we would...
07 August 2024 8,106 4 View
I am trying to analyse data from a survey examining what variables affect teachers perceived barriers to incorporating technology into their classroom. I have 5 predictor variables however my DV...
06 August 2024 1,752 3 View