Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Contributions  





2 To Do  





3 To Learn  





4 Stochastic Analysis  





5 Short Term TODO  



5.1  Poisson Regression in SPSS  





5.2  2D Spatial Statistical Analysis  







6 Friends  





7 Useful Stuff  



7.1  Poisson regression in R  



7.1.1  Syntax  





7.1.2  See Also  





7.1.3  References  


















User:Faridani

















User page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
User contributions
User logs
View user groups
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


This user is a PhD student in the field of operations research at Berkeley. He usually contributes to the following general topics:

  • Stochastic Processes
  • Optimization Algorithms
  • Python Programming
  • Micro Electro Mechanical Systems
  • Kaveh Zamani's Funcrasing

    — Today's Motto of the Day



    Contributions

    [edit]

    At this moment, He is contributing to the following articles:

    Social Network Analysis and Text Mining


    Production and Logistics Sciences:

    User Interfaces:

    Entrepreneurship:

    Other contributions:

    People:

    User boxes

    To Do

    [edit]

    To Learn

    [edit]

    Stochastic Analysis

    [edit]

    Short Term TODO

    [edit]

    Poisson Regression in SPSS

    [edit]
    1. Sorting in SPSS
    2. Poisson regression in SPSS
    3. Annotated SPSS Output

    2D Spatial Statistical Analysis

    [edit]

    Generalized Linear Models: logistic regression, Poisson regression, etc.

    Friends

    [edit]

    Useful Stuff

    [edit]

    Use # for auto numbering, * for bullets use <code></code> for Code Texts. When you want the text and the link to be different use this [[Optimal_control_theory|control]]control

    {{Reflist|3}} Multicol {{colbegin|3}} {{lorem}} {{lorem}} {{colend}}

    {{colbegin|3}}
    {{lorem}}
    {{lorem}}
    {{colend}}
    
    <syntaxhighlight lang="python">
    Time Visits 
    0.00 158
    0.50 177
    1.00 207
    1.50 133
    2.00 134
    2.50 119
    3.00 103
    </syntaxhighlight>
    

    For codes

    Time Visits 
    0.00 158
    0.50 177
    1.00 207
    1.50 133
    2.00 134
    2.50 119
    3.00 103
    

    This is the table I usually use:

    α β γ δ ε ζ
    η θ ι κ λ μ ν
    ξ ο π ρ σ ς
    τ υ φ χ ψ ω
    Γ Δ Θ Λ Ξ Π
    Σ Φ Ψ Ω
    ∫ ∑ ∏ √ − ± ∞
    ≈ ∝ = ≡ ≠ ≤ ≥
    × · ÷ ∂ ′ ″
    ∇ ‰ ° ∴ Ø ø
    ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇
    ¬ ∧ ∨ ∃ ∀
    ⇒ ⇔ → ↔ ↑
    ℵ - – —

    Poisson regression in R

    [edit]

    The R function for fitting a generalized linear model is glm(). A Poisson regression is done when a counting process is being observed.

    Syntax

    [edit]

    glm( numData˜roadType+weekDay, family=poisson(link=log), data=roadData) fits a model → Poisson(), where log() = . setting family=poisson.

    The following code does the Poisson regression in R

    X<-read.table("C:/poissonvisits.txt", header = TRUE)
    names(X)
    attach(X)
    hourofday <- Time
    foo <- split(Visits, hourofday)
    foo <- sapply(foo, sum)
    barplot(foo, space = 0, xlab = "hour of the day", ylab = "total count")
    
    #Starting from here we do the GLM
    w <- Time/24 * 2 * pi
    out1 <- glm(Visits ~ I(sin(w)) + I(cos(w)), family = poisson)
    summary(out1)
    
    out2 <- update(out1, . ~ . + I(sin(2 * w)) + I(cos(2 * w)))
    summary(out2)
    
    out3 <- update(out2, . ~ . + I(sin(3 * w)) + I(cos(3 * w)))
    summary(out3)
    
    anova(out1, out2, out3, test = "Chisq")
    plot(hourofday, Visits, xlab = "hour of the day")
    
    curve(predict(out2, data.frame(w = x/24 * 2 * pi), type = "response"),add = TRUE)
    

    where the file poissonvisits.txt is defined as

    Time Visits 
    0.00 158
    0.50 177
    1.00 207
    1.50 133
    2.00 134
    2.50 119
    3.00 103
    

    For more information about glm()inR type ?glm

    See Also

    [edit]

    ANOVA

    References

    [edit]



    Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Faridani&oldid=1086821756"

    Category: 
    WikiProject Systems participants
     



    This page was last edited on 8 May 2022, at 15:17 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki